From 71e431af2e65196ad4e7bc3404e772b1726d3338 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 10 Mar 2026 20:01:15 +0200 Subject: Introduce client runtime boundaries --- cmd/dgrep/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/dgrep/main.go') 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") -- cgit v1.2.3