diff options
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | README.md | 3 | ||||
| -rw-r--r-- | src/bin/git_remote_nostr/main.rs | 1 | ||||
| -rw-r--r-- | src/bin/ngit/cli.rs | 6 |
4 files changed, 9 insertions, 3 deletions
| @@ -2,7 +2,7 @@ | |||
| 2 | name = "ngit" | 2 | name = "ngit" |
| 3 | version = "1.5.3" | 3 | version = "1.5.3" |
| 4 | edition = "2021" | 4 | edition = "2021" |
| 5 | description = "a command-line tool and git plugin to work with nostr enabled git repositories" | 5 | description = "nostr plugin for git" |
| 6 | authors = ["DanConwayDev <DanConwayDev@protonmail.com>"] | 6 | authors = ["DanConwayDev <DanConwayDev@protonmail.com>"] |
| 7 | readme = "README.md" | 7 | readme = "README.md" |
| 8 | homepage = "https://gitworkshop.dev/r/naddr1qqzxuemfwsqs6amnwvaz7tmwdaejumr0dspzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqvzqqqrhnym0k2qj" | 8 | homepage = "https://gitworkshop.dev/r/naddr1qqzxuemfwsqs6amnwvaz7tmwdaejumr0dspzpgqgmmc409hm4xsdd74sf68a2uyf9pwel4g9mfdg8l5244t6x4jdqvzqqqrhnym0k2qj" |
| @@ -1,10 +1,11 @@ | |||
| 1 | # ngit | 1 | # ngit |
| 2 | 2 | ||
| 3 | a command-line tool and git plugin to work with nostr enabled git repositories | 3 | nostr 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 | ||
| 9 | browse [gitworkshop.dev/repos](https://gitworkshop.dev/repos) to find nostr repositories. | 10 | browse [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; | |||
| 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)] |