From 553bbac36bdc483135a7053ca64507e01397e5e1 Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 9 Sep 2024 23:03:49 +0200 Subject: add package manager recognition --- src/cli.rs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/cli.rs (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs new file mode 100644 index 0000000..6ffe03f --- /dev/null +++ b/src/cli.rs @@ -0,0 +1,25 @@ +use std::path::PathBuf; + +use clap::{Parser, Subcommand}; + +use crate::packages::Manager; + +#[derive(Parser)] +pub struct Cli { + #[arg(short, long)] + pub config: Option, + + #[command(subcommand)] + pub subcommand: Subcommands, +} + +#[derive(Subcommand)] +pub enum Subcommands { + GenerateConfig, + Save { + #[arg(short, long)] + package_manager: Option, + }, + Restore, +} + -- cgit v1.2.3