summaryrefslogtreecommitdiff
path: root/cmd/dgrep/main.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-10 20:01:15 +0200
committerPaul Buetow <paul@buetow.org>2026-03-10 20:01:15 +0200
commit71e431af2e65196ad4e7bc3404e772b1726d3338 (patch)
tree935e3b1af7c5b0033caf13ea00cf9655686b6ec9 /cmd/dgrep/main.go
parentf6e23930da2900c43a5389a2e7d1e38d8221a76f (diff)
Introduce client runtime boundaries
Diffstat (limited to 'cmd/dgrep/main.go')
-rw-r--r--cmd/dgrep/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/dgrep/main.go b/cmd/dgrep/main.go
index a36a6ae..aadf5c7 100644
--- a/cmd/dgrep/main.go
+++ b/cmd/dgrep/main.go
@@ -60,7 +60,8 @@ func main() {
config.Setup(source.Client, &args, flag.Args())
if displayVersion {
- version.PrintAndExit()
+ runtimeCfg := config.CurrentRuntime()
+ version.PrintAndExit(runtimeCfg.Client != nil && runtimeCfg.Client.TermColorsEnable)
}
runtime := cli.NewClientRuntime(context.Background(), profileFlags, "dgrep")