Skip to content

Commit

Permalink
feat: del command install
Browse files Browse the repository at this point in the history
  • Loading branch information
1739616529 committed Jul 26, 2024
1 parent 9aff8a5 commit 173b8e2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 38 deletions.
31 changes: 0 additions & 31 deletions crates/nsv/src/command/install.rs

This file was deleted.

7 changes: 0 additions & 7 deletions crates/nsv/src/command/mod.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
mod add;
mod r#use;
mod install;
use crate::print_log_err;
use add::Add;
use async_trait::async_trait;
use install::Install;
use r#use::Use;
use root::core::NsvCore;
use root::node::NsvCoreError;
Expand All @@ -18,17 +16,12 @@ pub enum Commands {
/// 下载node版本
#[clap(name = "add", bin_name = "add")]
Add(Add),

/// 安装 Nsv
#[clap(name = "install", bin_name = "install")]
Install(Install)
}
impl Commands {
pub async fn call(&self, core: &mut NsvCore) {
match self {
Self::Use(cmd) => cmd.call(core).await,
Self::Add(cmd) => cmd.call(core).await,
Self::Install(cmd) => cmd.call(core).await,
}
}
}
Expand Down

0 comments on commit 173b8e2

Please sign in to comment.