initial skeleton

This commit is contained in:
stoorps 2026-03-19 18:46:50 +00:00
parent dc79fa2448
commit 71f89dde9c
Signed by: stoorps
SSH key fingerprint: SHA256:AZlPfu9hTu042EGtZElmDQoy+KvMOeShLDan/fYLoNI
60 changed files with 3480 additions and 0 deletions

View file

@ -0,0 +1,31 @@
use clap::Parser;
#[derive(Debug, Parser)]
#[command(name = "aim")]
#[command(about = "AppImage Manager")]
pub struct Cli {
#[arg(global = true, long = "system", conflicts_with = "user")]
pub system: bool,
#[arg(global = true, long = "user", conflicts_with = "system")]
pub user: bool,
#[command(subcommand)]
pub command: Option<Command>,
pub query: Option<String>,
}
impl Cli {
pub fn is_review_update_flow(&self) -> bool {
matches!(self.command, Some(Command::Update))
|| (self.command.is_none() && self.query.is_none())
}
}
#[derive(Debug, clap::Subcommand)]
pub enum Command {
Remove { query: String },
List,
Update,
}