summaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs25
1 files changed, 25 insertions, 0 deletions
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 @@
1use std::path::PathBuf;
2
3use clap::{Parser, Subcommand};
4
5use crate::packages::Manager;
6
7#[derive(Parser)]
8pub struct Cli {
9 #[arg(short, long)]
10 pub config: Option<PathBuf>,
11
12 #[command(subcommand)]
13 pub subcommand: Subcommands,
14}
15
16#[derive(Subcommand)]
17pub enum Subcommands {
18 GenerateConfig,
19 Save {
20 #[arg(short, long)]
21 package_manager: Option<Manager>,
22 },
23 Restore,
24}
25