dinopkg/crates/dinopkg-cli/src/main.rs

13 lines
233 B
Rust
Raw Normal View History

2024-07-09 20:30:33 +01:00
use clap::Parser;
mod command;
2024-07-09 20:43:00 +01:00
use command::{Cli, Command};
2024-07-09 20:30:33 +01:00
#[tokio::main]
async fn main() {
let cli = Cli::parse();
2024-07-09 20:45:06 +01:00
match cli.command {
Command::Run { script_name } => command::run::run(script_name).await,
}
2024-07-09 20:24:48 +01:00
}