Skip to content

Commit

Permalink
shell: default to "." when no query is specified
Browse files Browse the repository at this point in the history
use the current tree for "garden shell" when nothing
is specified. This makes it easier to start a shell
in the current directory.
  • Loading branch information
davvid committed Feb 14, 2024
1 parent 64ef65f commit c682e31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/src/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
configuring the `garden.interactive-shell` value.
([#26](https://github.com/davvid/garden/pull/26))

- `garden shell` can now be run without any arguments. The tree query now defaults to
`.` so that the tree in the current directory is used when nothing is specified.
([#26](https://github.com/davvid/garden/pull/26))


## v1.2.1

Expand Down
1 change: 1 addition & 0 deletions src/cmds/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::{cmd, errors, eval, model, query};
#[command(author, about, long_about)]
pub struct ShellOptions {
/// Query for trees to build an environment
#[arg(default_value = ".")]
query: String,
/// Tree to chdir into
tree: Option<String>,
Expand Down

0 comments on commit c682e31

Please sign in to comment.