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-13 08:12:05 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-13 08:12:05 +0000
commitcfd8cc19b6a81ad78bc30d5b21cefe21d574d09e (patch)
tree1c87060ebc36da51e17bbb3ac246e77035ee362c /src/bin/ngit/cli.rs
parent64f1cf4f8e021f52f8e7df75e62f10d32d9fa101 (diff)
feat: add --verbose/-v flag for detailed output
Adds a global --verbose/-v flag that sets NGIT_VERBOSE environment variable. Also sets NGIT_VERBOSE automatically when NGIT_TEST is set.
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 dd7196c..c77e719 100644
--- a/src/bin/ngit/cli.rs
+++ b/src/bin/ngit/cli.rs
@@ -42,6 +42,9 @@ pub struct Cli {
42 /// Force operations, bypass safety guards 42 /// Force operations, bypass safety guards
43 #[arg(short = 'f', long, global = true)] 43 #[arg(short = 'f', long, global = true)]
44 pub force: bool, 44 pub force: bool,
45 /// Enable verbose output
46 #[arg(short = 'v', long, global = true)]
47 pub verbose: bool,
45} 48}
46 49
47pub const CUSTOMISE_TEMPLATE: &str = r" 50pub const CUSTOMISE_TEMPLATE: &str = r"