diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-27 11:48:05 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2024-11-27 11:48:05 +0000 |
| commit | 9632349a85fd53bc5af272d3539d38030567412b (patch) | |
| tree | a58cc9438b76ff81e7ed11821e18f24abec083a7 /src/bin | |
| parent | 7f5984d0609dd7ad630623b6331234cc7ef5944a (diff) | |
build: add description to help
and add `ngit init` to description / help content
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/git_remote_nostr/main.rs | 1 | ||||
| -rw-r--r-- | src/bin/ngit/cli.rs | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/git_remote_nostr/main.rs b/src/bin/git_remote_nostr/main.rs index 6b89be6..f164a65 100644 --- a/src/bin/git_remote_nostr/main.rs +++ b/src/bin/git_remote_nostr/main.rs | |||
| @@ -131,6 +131,7 @@ fn process_args() -> Result<Option<(NostrUrlDecoded, Repo)>> { | |||
| 131 | println!( | 131 | println!( |
| 132 | " - to open a PR, push a branch with the prefix `pr/` or use `ngit send` for advanced options" | 132 | " - to open a PR, push a branch with the prefix `pr/` or use `ngit send` for advanced options" |
| 133 | ); | 133 | ); |
| 134 | println!("- publish a repository to nostr with `ngit init`"); | ||
| 134 | return Ok(None); | 135 | return Ok(None); |
| 135 | }; | 136 | }; |
| 136 | 137 | ||
diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs index e537197..26116be 100644 --- a/src/bin/ngit/cli.rs +++ b/src/bin/ngit/cli.rs | |||
| @@ -5,7 +5,11 @@ use ngit::login::SignerInfo; | |||
| 5 | use crate::sub_commands; | 5 | use crate::sub_commands; |
| 6 | 6 | ||
| 7 | #[derive(Parser)] | 7 | #[derive(Parser)] |
| 8 | #[command(author, version, about, long_about = None)] | 8 | #[command( |
| 9 | author, | ||
| 10 | version, | ||
| 11 | help_template = "{name} {version}\nnostr plugin for git\n - clone a nostr repository, or add as a remote, by using the url format nostr://pub123/identifier\n - remote branches begining with `pr/` are open PRs from contributors; `ngit list` can be used to view all PRs\n - to open a PR, push a branch with the prefix `pr/` or use `ngit send` for advanced options\n- publish a repository to nostr with `ngit init`\n\n{usage}\n{all-args}" | ||
| 12 | )] | ||
| 9 | #[command(propagate_version = true)] | 13 | #[command(propagate_version = true)] |
| 10 | pub struct Cli { | 14 | pub struct Cli { |
| 11 | #[command(subcommand)] | 15 | #[command(subcommand)] |