add first commands
This commit is contained in:
16
src/main.rs
16
src/main.rs
@@ -1,3 +1,15 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
mod cli;
|
||||
mod commands;
|
||||
|
||||
use anyhow::Result;
|
||||
use clap::Parser;
|
||||
use cli::{Cli, Commands};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let cli = Cli::parse();
|
||||
|
||||
match cli.command {
|
||||
Commands::Desktop(cmd) => commands::desktop::run(&cmd),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user