upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/main.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-20 21:54:00 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-20 21:54:00 +0000
commit8f1a1743bd4e85e922ec0cc1f050911a28af4cf0 (patch)
tree2d9eb4954395b62c66d1cc937c6e78a060129f3f /src/bin/ngit/main.rs
parent67f09343c15e6a0e3622811d3eb5e513a8205eda (diff)
add `ngit repo` subcommand group
- `ngit repo` (no subcommand): show repository info including maintainer tree, per-maintainer infrastructure attribution, and a note explaining the union-vs-personal field model and recursive maintainer sets - `ngit repo init`: alias for `ngit init` - `ngit repo edit`: same as init but signals intent to update an existing repository announcement - `ngit repo accept`: scoped command for co-maintainers to publish their announcement; errors with clear messages for all other states (trusted maintainer, already accepted, not invited, no repo found)
Diffstat (limited to 'src/bin/ngit/main.rs')
-rw-r--r--src/bin/ngit/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/ngit/main.rs b/src/bin/ngit/main.rs
index c88238a..924a714 100644
--- a/src/bin/ngit/main.rs
+++ b/src/bin/ngit/main.rs
@@ -49,6 +49,9 @@ async fn main() {
49 } 49 }
50 }, 50 },
51 Commands::Init(args) => sub_commands::init::launch(&cli, args).await, 51 Commands::Init(args) => sub_commands::init::launch(&cli, args).await,
52 Commands::Repo(args) => {
53 sub_commands::repo::launch(&cli, args.repo_command.as_ref()).await
54 }
52 Commands::List { 55 Commands::List {
53 status, 56 status,
54 json, 57 json,