diff options
Diffstat (limited to 'src/cmds/cmd/workspace_create.rs')
| -rw-r--r-- | src/cmds/cmd/workspace_create.rs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/cmds/cmd/workspace_create.rs b/src/cmds/cmd/workspace_create.rs index c5f8c8e..1c983f6 100644 --- a/src/cmds/cmd/workspace_create.rs +++ b/src/cmds/cmd/workspace_create.rs @@ -7,7 +7,7 @@ use crate::{ }, systems::{ cmd::{ - cmd_system::JVCommandContext, + cmd_system::{AnyOutput, JVCommandContext}, errors::{CmdExecuteError, CmdPrepareError}, }, helpdoc::helpdoc_viewer, @@ -15,7 +15,6 @@ use crate::{ }; use cmd_system_macros::exec; use just_enough_vcs::system::workspace::func::create_workspace; -use std::any::TypeId; pub struct JVWorkspaceCreateCommand; type Cmd = JVWorkspaceCreateCommand; @@ -39,10 +38,7 @@ async fn collect(_args: &Arg, _ctx: &JVCommandContext) -> Result<Collect, CmdPre } #[exec] -async fn exec( - input: In, - _collect: Collect, -) -> Result<(Box<dyn std::any::Any + Send + 'static>, TypeId), CmdExecuteError> { +async fn exec(input: In, _collect: Collect) -> Result<AnyOutput, CmdExecuteError> { create_workspace(input.path) .await .map_err(JVWorkspaceOperationErrorConverter::to_exec_error)?; |
