mv -> More organized method definitions.

This commit is contained in:
Andrés N. Robalino
2019-08-20 06:23:34 -05:00
parent 11095860c8
commit 0f28719564
2 changed files with 13 additions and 13 deletions

View File

@@ -17,16 +17,6 @@ pub struct MoveArgs {
}
impl PerItemCommand for Move {
fn run(
&self,
call_info: &CallInfo,
_registry: &CommandRegistry,
shell_manager: &ShellManager,
_input: Tagged<Value>,
) -> Result<VecDeque<ReturnValue>, 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<Value>,
) -> Result<VecDeque<ReturnValue>, ShellError> {
call_info.process(shell_manager, mv)?.run()
}
}
pub fn mv(