upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-11-27 11:48:05 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-11-27 11:48:05 +0000
commit9632349a85fd53bc5af272d3539d38030567412b (patch)
treea58cc9438b76ff81e7ed11821e18f24abec083a7 /src/bin
parent7f5984d0609dd7ad630623b6331234cc7ef5944a (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.rs1
-rw-r--r--src/bin/ngit/cli.rs6
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;
5use crate::sub_commands; 5use 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)]
10pub struct Cli { 14pub struct Cli {
11 #[command(subcommand)] 15 #[command(subcommand)]