nushell/src/commands/cd.rs

9 lines
277 B
Rust
Raw Normal View History

2019-05-11 09:00:33 +02:00
use crate::errors::ShellError;
use crate::prelude::*;
2019-08-09 06:51:21 +02:00
2019-08-09 21:42:23 +02:00
pub fn cd(args: CommandArgs, registry: &CommandRegistry) -> Result<OutputStream, ShellError> {
let shell_manager = args.shell_manager.clone();
let args = args.evaluate_once(registry)?;
shell_manager.cd(args)
2019-05-11 09:00:33 +02:00
}