diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-14 08:54:27 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-02-14 08:54:27 +0000 |
| commit | 62d7f2fb26f2843fa8f7ff8b988bac14e5f756e2 (patch) | |
| tree | a647093fbe3b84fad628345c7514496232f1cf77 /src | |
| parent | c0847f928c32adb0b4dfc3b73ee77fa3cdb5ec21 (diff) | |
feat!: move `claim` > `init`
this aligns with gitstr and is more intuative
the idea behind using claim to indicate that it is only for
maintainersto do is valid but its too confusing
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 4 | ||||
| -rw-r--r-- | src/sub_commands/init.rs (renamed from src/sub_commands/claim.rs) | 0 | ||||
| -rw-r--r-- | src/sub_commands/mod.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 539d9ff..0e8e847 100644 --- a/src/main.rs +++ b/src/main.rs | |||
| @@ -35,7 +35,7 @@ enum Commands { | |||
| 35 | /// save encrypted nsec for future use | 35 | /// save encrypted nsec for future use |
| 36 | Login(sub_commands::login::SubCommandArgs), | 36 | Login(sub_commands::login::SubCommandArgs), |
| 37 | /// issue repository reference event as a maintainers | 37 | /// issue repository reference event as a maintainers |
| 38 | Claim(sub_commands::claim::SubCommandArgs), | 38 | Init(sub_commands::init::SubCommandArgs), |
| 39 | /// send a PR / patch / patch set via nostr events | 39 | /// send a PR / patch / patch set via nostr events |
| 40 | Send(sub_commands::send::SubCommandArgs), | 40 | Send(sub_commands::send::SubCommandArgs), |
| 41 | /// list open PRs / patches / patch sets and pull / apply them a branch | 41 | /// list open PRs / patches / patch sets and pull / apply them a branch |
| @@ -51,7 +51,7 @@ async fn main() -> Result<()> { | |||
| 51 | let cli = Cli::parse(); | 51 | let cli = Cli::parse(); |
| 52 | match &cli.command { | 52 | match &cli.command { |
| 53 | Commands::Login(args) => sub_commands::login::launch(&cli, args).await, | 53 | Commands::Login(args) => sub_commands::login::launch(&cli, args).await, |
| 54 | Commands::Claim(args) => sub_commands::claim::launch(&cli, args).await, | 54 | Commands::Init(args) => sub_commands::init::launch(&cli, args).await, |
| 55 | Commands::Send(args) => sub_commands::send::launch(&cli, args).await, | 55 | Commands::Send(args) => sub_commands::send::launch(&cli, args).await, |
| 56 | Commands::List(args) => sub_commands::list::launch(&cli, args).await, | 56 | Commands::List(args) => sub_commands::list::launch(&cli, args).await, |
| 57 | Commands::Pull => sub_commands::pull::launch().await, | 57 | Commands::Pull => sub_commands::pull::launch().await, |
diff --git a/src/sub_commands/claim.rs b/src/sub_commands/init.rs index a95021d..a95021d 100644 --- a/src/sub_commands/claim.rs +++ b/src/sub_commands/init.rs | |||
diff --git a/src/sub_commands/mod.rs b/src/sub_commands/mod.rs index b16d50f..9f97b7e 100644 --- a/src/sub_commands/mod.rs +++ b/src/sub_commands/mod.rs | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | pub mod claim; | 1 | pub mod init; |
| 2 | pub mod list; | 2 | pub mod list; |
| 3 | pub mod login; | 3 | pub mod login; |
| 4 | pub mod pull; | 4 | pub mod pull; |