mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 14:56:14 +02:00
Make cd argument optional
`cd` with no arugments changes directory to $HOME.
This commit is contained in:
@ -18,7 +18,7 @@ impl WholeStreamCommand for CD {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build("cd").required("directory", SyntaxType::Path)
|
Signature::build("cd").optional("directory", SyntaxType::Path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user