Add cli crate skeleton

This commit is contained in:
michael
2026-04-26 14:40:44 -07:00
parent e3ab53c3c6
commit ab5b158dc3
2 changed files with 39 additions and 0 deletions

16
cli/Cargo.toml Normal file
View File

@@ -0,0 +1,16 @@
[package]
name = "ubuntu-fidoctl"
version.workspace = true
edition.workspace = true
license.workspace = true
[[bin]]
name = "ubuntu-fidoctl"
path = "src/main.rs"
[dependencies]
ubuntu-fido-common = { path = "../common" }
clap = { workspace = true }
anyhow = { workspace = true }
zbus = { workspace = true }
tokio = { workspace = true }

23
cli/src/main.rs Normal file
View File

@@ -0,0 +1,23 @@
use anyhow::Result;
use clap::Parser;
#[derive(Parser)]
#[command(name = "ubuntu-fidoctl", version, about = "Manage ubuntu-fido configuration")]
struct Cli {
#[command(subcommand)]
cmd: Cmd,
}
#[derive(clap::Subcommand)]
enum Cmd {
Status,
}
#[tokio::main]
async fn main() -> Result<()> {
let args = Cli::parse();
match args.cmd {
Cmd::Status => println!("ubuntu-fidoctl: not yet implemented"),
}
Ok(())
}