26 lines
668 B
Rust
26 lines
668 B
Rust
use clap::Parser;
|
|
|
|
use crate::cli::{
|
|
args::{Cli, Commands},
|
|
run_cli, run_delete, run_download, run_list, run_ps, run_run, run_serv,
|
|
};
|
|
|
|
mod cli;
|
|
#[allow(unused)]
|
|
mod params;
|
|
mod server;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> anyhow::Result<()> {
|
|
let cli = Cli::parse();
|
|
match cli.command {
|
|
Commands::Cli(args) => run_cli(args).await,
|
|
Commands::Serv(args) => run_serv(args).await,
|
|
Commands::Ps(args) => run_ps(args),
|
|
Commands::Delete(args) => run_delete(args),
|
|
Commands::Download(args) => run_download(args).await,
|
|
Commands::Run(args) => run_run(args),
|
|
Commands::List(args) => run_list(args),
|
|
}
|
|
}
|