diff options
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/src/cli.rs b/src/cli.rs deleted file mode 100644 index d0f934e..0000000 --- a/src/cli.rs +++ /dev/null | |||
| @@ -1,44 +0,0 @@ | |||
| 1 | use clap::{Parser, Subcommand}; | ||
| 2 | |||
| 3 | use crate::sub_commands; | ||
| 4 | |||
| 5 | #[derive(Parser)] | ||
| 6 | #[command(author, version, about, long_about = None)] | ||
| 7 | #[command(propagate_version = true)] | ||
| 8 | pub struct Cli { | ||
| 9 | #[command(subcommand)] | ||
| 10 | pub command: Commands, | ||
| 11 | /// remote signer address | ||
| 12 | #[arg(long, global = true)] | ||
| 13 | pub bunker_uri: Option<String>, | ||
| 14 | /// remote signer app secret key | ||
| 15 | #[arg(long, global = true)] | ||
| 16 | pub bunker_app_key: Option<String>, | ||
| 17 | /// nsec or hex private key | ||
| 18 | #[arg(short, long, global = true)] | ||
| 19 | pub nsec: Option<String>, | ||
| 20 | /// password to decrypt nsec | ||
| 21 | #[arg(short, long, global = true)] | ||
| 22 | pub password: Option<String>, | ||
| 23 | /// disable spinner animations | ||
| 24 | #[arg(long, action)] | ||
| 25 | pub disable_cli_spinners: bool, | ||
| 26 | } | ||
| 27 | |||
| 28 | #[derive(Subcommand)] | ||
| 29 | pub enum Commands { | ||
| 30 | /// update cache with latest updates from nostr | ||
| 31 | Fetch(sub_commands::fetch::SubCommandArgs), | ||
| 32 | /// signal you are this repo's maintainer accepting proposals via nostr | ||
| 33 | Init(sub_commands::init::SubCommandArgs), | ||
| 34 | /// issue commits as a proposal | ||
| 35 | Send(sub_commands::send::SubCommandArgs), | ||
| 36 | /// list proposals; checkout, apply or download selected | ||
| 37 | List, | ||
| 38 | /// send proposal revision | ||
| 39 | Push(sub_commands::push::SubCommandArgs), | ||
| 40 | /// fetch and apply new proposal commits / revisions linked to branch | ||
| 41 | Pull, | ||
| 42 | /// run with --nsec flag to change npub | ||
| 43 | Login(sub_commands::login::SubCommandArgs), | ||
| 44 | } | ||