From ab5b158dc31b0c892ad41373a9fcd38b2cf2683c Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 26 Apr 2026 14:40:44 -0700 Subject: [PATCH] Add cli crate skeleton --- cli/Cargo.toml | 16 ++++++++++++++++ cli/src/main.rs | 23 +++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 cli/Cargo.toml create mode 100644 cli/src/main.rs diff --git a/cli/Cargo.toml b/cli/Cargo.toml new file mode 100644 index 0000000..e6aef0c --- /dev/null +++ b/cli/Cargo.toml @@ -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 } diff --git a/cli/src/main.rs b/cli/src/main.rs new file mode 100644 index 0000000..59fcadf --- /dev/null +++ b/cli/src/main.rs @@ -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(()) +}