orbiter/utils/cli.rs
1use clap::{Parser, Subcommand};
2
3#[derive(Parser)]
4#[command(version)]
5pub struct Cli {
6 #[command(subcommand)]
7 pub command: Commands,
8}
9
10#[derive(Subcommand)]
11pub enum Commands {
12 /// Initialise shell
13 Init {
14 /// Name of shell (Options: Zsh, Bash, PowerShell, etc.)
15 shell: String,
16 },
17 /// Update a payload
18 Update {
19 /// ID of the payload to update
20 id: Option<String>,
21 },
22 /// List configured payloads
23 List {
24 /// Scope of the payloads to list (effective(default)/all)
25 scope: Option<String>,
26 },
27}