You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nenv/src/main.rs

19 lines
499 B
Rust

2 years ago
use args::Args;
use clap::Parser;
use nenv::repository::NodeVersion;
2 years ago
mod args;
#[tokio::main(flavor = "current_thread")]
async fn main() {
color_eyre::install().unwrap();
let args: Args = Args::parse();
match args.commmand {
args::Command::Install(v) => nenv::install_version(v.version).await.unwrap(),
args::Command::Use(v) => nenv::use_version(v.version).await.unwrap(),
args::Command::Default => todo!(),
args::Command::Version => todo!(),
};
}