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 208676a commit da377f4
Showing 1 changed file with 1 addition and 0 deletions.
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 da377f4

Please sign in to comment.