upleb.uk

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

summaryrefslogtreecommitdiff
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
parent7f5984d0609dd7ad630623b6331234cc7ef5944a (diff)
build: add description to help
and add `ngit init` to description / help content
-rw-r--r--Cargo.toml2
-rw-r--r--README.md3
-rw-r--r--src/bin/git_remote_nostr/main.rs1
-rw-r--r--src/bin/ngit/cli.rs6
4 files changed, 9 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b89087d..8ed3741 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
2name = "ngit" 2name = "ngit"
3version = "1.5.3" 3version = "1.5.3"
4edition = "2021" 4edition = "2021"
5description = "a command-line tool and git plugin to work with nostr enabled git repositories" 5description = "nostr plugin for git"
6authors = ["DanConwayDev <DanConwayDev@protonmail.com>"] 6authors = ["DanConwayDev <DanConwayDev@protonmail.com>"]
7readme = "README.md" 7readme = "README.md"
8homepage = "https://gitworkshop.dev/r/naddr1qqzxuemfwsqs6amnwvaz7tmwdaejumr0dspzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqvzqqqrhnym0k2qj" 8homepage = "https://gitworkshop.dev/r/naddr1qqzxuemfwsqs6amnwvaz7tmwdaejumr0dspzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqvzqqqrhnym0k2qj"
diff --git a/README.md b/README.md
index 5f75ab5..6117ada 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,11 @@
1# ngit 1# ngit
2 2
3a command-line tool and git plugin to work with nostr enabled git repositories 3nostr plugin for git
4 4
5- clone a nostr repository, or add as a remote, by using the url format nostr://pub123/identifier 5- clone a nostr repository, or add as a remote, by using the url format nostr://pub123/identifier
6- remote branches begining with `pr/` are open PRs from contributors; `ngit list` can be used to view all PRs 6- remote branches begining with `pr/` are open PRs from contributors; `ngit list` can be used to view all PRs
7- to open a PR, push a branch with the prefix `pr/` or use `ngit send` for advanced options 7- to open a PR, push a branch with the prefix `pr/` or use `ngit send` for advanced options
8- publish a repository to nostr with `ngit init`
8 9
9browse [gitworkshop.dev/repos](https://gitworkshop.dev/repos) to find nostr repositories. 10browse [gitworkshop.dev/repos](https://gitworkshop.dev/repos) to find nostr repositories.
10 11
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)]