add first commands

This commit is contained in:
Thibaud Dauce
2026-02-18 09:32:01 +01:00
parent 5c84fb182e
commit e60f150611
6 changed files with 524 additions and 2 deletions

View File

@@ -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),
}
}