diff --git a/src/commands/mv.rs b/src/commands/mv.rs index 5b4af16124..a660b6fb63 100644 --- a/src/commands/mv.rs +++ b/src/commands/mv.rs @@ -17,16 +17,6 @@ pub struct MoveArgs { } impl PerItemCommand for Move { - fn run( - &self, - call_info: &CallInfo, - _registry: &CommandRegistry, - shell_manager: &ShellManager, - _input: Tagged, - ) -> Result, ShellError> { - call_info.process(shell_manager, mv)?.run() - } - fn name(&self) -> &str { "mv" } @@ -37,6 +27,16 @@ impl PerItemCommand for Move { .required("destination", SyntaxType::Path) .named("file", SyntaxType::Any) } + + fn run( + &self, + call_info: &CallInfo, + _registry: &CommandRegistry, + shell_manager: &ShellManager, + _input: Tagged, + ) -> Result, ShellError> { + call_info.process(shell_manager, mv)?.run() + } } pub fn mv( diff --git a/tests/command_enter_test.rs b/tests/command_enter_test.rs index 36884c303e..11e44a1a67 100644 --- a/tests/command_enter_test.rs +++ b/tests/command_enter_test.rs @@ -1,6 +1,6 @@ mod helpers; -use h::{in_directory as cwd, Playground, Stub::*}; +use h::{in_directory as cwd, normalize_string, Playground, Stub::*}; use helpers as h; use std::path::{Path, PathBuf}; @@ -33,12 +33,12 @@ fn can_understand_known_formats() { r#" enter fortune_tellers.toml cd amigos - ls | get unicorns | sum + ls | get unicorns | sum exit "# ); - assert!(output.contains("3000")); + assert!(normalize_string(&output).contains("3000")); } #[test]