upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/cli.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-20 23:03:15 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-20 23:04:21 +0000
commite50687b908e802c9f3328c9b57060b63bb5706c0 (patch)
tree0429435eb1e0a4ff135c5f62b6386b85afb99de3 /src/bin/ngit/cli.rs
parent68779f91f051822270f156a4185350fb3c4b5017 (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.rs3
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 {
187pub struct RepoSubCommandArgs { 187pub 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)]