mirror of
https://github.com/nushell/nushell.git
synced 2024-12-12 10:10:51 +01:00
9 lines
277 B
Rust
9 lines
277 B
Rust
use crate::errors::ShellError;
|
|
use crate::prelude::*;
|
|
|
|
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)
|
|
}
|