diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-12 09:47:43 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-12 09:47:43 +0000 |
| commit | 8293af72744bc89beac57a194602938536b429db (patch) | |
| tree | 1a2d37ca6a97c1e7bb5c2fb022e2cef8da1b13e9 /src/bin/ngit/cli.rs | |
| parent | 7d63ae9530c807e12aefcab48d5a4e2576905905 (diff) | |
feat: add ngit checkout command for non-interactive proposal checkout
Adds a new 'ngit checkout <event-id|nevent>' command that creates or
updates a proposal branch and checks it out. Supports both PRs and
patches with parent-commit references.
Phase 1 of non-interactive ngit list implementation.
Diffstat (limited to 'src/bin/ngit/cli.rs')
| -rw-r--r-- | src/bin/ngit/cli.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs index 47f4b27..5c1a097 100644 --- a/src/bin/ngit/cli.rs +++ b/src/bin/ngit/cli.rs | |||
| @@ -106,6 +106,11 @@ pub enum Commands { | |||
| 106 | Send(sub_commands::send::SubCommandArgs), | 106 | Send(sub_commands::send::SubCommandArgs), |
| 107 | /// list PRs; checkout, apply or download selected | 107 | /// list PRs; checkout, apply or download selected |
| 108 | List, | 108 | List, |
| 109 | /// checkout a proposal branch by event-id or nevent | ||
| 110 | Checkout { | ||
| 111 | /// Proposal event-id (hex) or nevent (bech32) | ||
| 112 | id: String, | ||
| 113 | }, | ||
| 109 | /// update repo git servers to reflect nostr state (add, update or delete | 114 | /// update repo git servers to reflect nostr state (add, update or delete |
| 110 | /// remote refs) | 115 | /// remote refs) |
| 111 | Sync(sub_commands::sync::SubCommandArgs), | 116 | Sync(sub_commands::sync::SubCommandArgs), |