diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-15 22:57:36 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-15 22:57:36 +0800 |
| commit | 0a6b6c1d213e19c7649e343c2a77f3399feb8016 (patch) | |
| tree | 9c2e0fbf51a1f6e80f5a623ad094be2b62782607 /src/cmds/cmd/workspace_create.rs | |
| parent | 71145f72947033bbc5125e14ea89f8d68c189da4 (diff) | |
Add build system rerun triggers and refactor command system
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)?; |
