diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-20 23:03:15 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-20 23:04:21 +0000 |
| commit | e50687b908e802c9f3328c9b57060b63bb5706c0 (patch) | |
| tree | 0429435eb1e0a4ff135c5f62b6386b85afb99de3 /src/bin/ngit/cli.rs | |
| parent | 68779f91f051822270f156a4185350fb3c4b5017 (diff) | |
improve `ngit repo` output styling
- make repo name bold yellow as a title; section headings bold dim
- add dim horizontal rules above and below the name/description block
- move earliest unique commit to the bottom (after additional relays)
- add --offline flag to skip network fetch and use local cache only
Diffstat (limited to 'src/bin/ngit/cli.rs')
| -rw-r--r-- | src/bin/ngit/cli.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/ngit/cli.rs b/src/bin/ngit/cli.rs index fa5d906..164035b 100644 --- a/src/bin/ngit/cli.rs +++ b/src/bin/ngit/cli.rs | |||
| @@ -187,6 +187,9 @@ pub struct AccountSubCommandArgs { | |||
| 187 | pub struct RepoSubCommandArgs { | 187 | pub struct RepoSubCommandArgs { |
| 188 | #[command(subcommand)] | 188 | #[command(subcommand)] |
| 189 | pub repo_command: Option<RepoCommands>, | 189 | pub repo_command: Option<RepoCommands>, |
| 190 | /// Use local cache only, skip network fetch | ||
| 191 | #[arg(long)] | ||
| 192 | pub offline: bool, | ||
| 190 | } | 193 | } |
| 191 | 194 | ||
| 192 | #[derive(Subcommand)] | 195 | #[derive(Subcommand)] |