From 50cf5960cb1f0af831e28eb08b15b97794287f87 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 9 Oct 2025 14:08:47 +0100 Subject: =?UTF-8?q?=E2=9C=A8feat:=20add=20serv=20subcommand=20using=20Clap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/args.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/args.rs (limited to 'src/args.rs') diff --git a/src/args.rs b/src/args.rs new file mode 100644 index 0000000..415d816 --- /dev/null +++ b/src/args.rs @@ -0,0 +1,16 @@ +use clap::{Parser, Subcommand}; + +/// Simple bookmarks manager written in Rust +#[derive(Debug, Parser)] +#[command(version, about, long_about = None)] +pub struct Cli { + #[command(subcommand)] + pub command: Command, +} + +#[derive(Debug, Subcommand)] +pub enum Command { + /// Start the web server to serve the bookmarks page + #[command(name = "serv")] + Serv, +} -- cgit v1.2.3