From 051486a49848c59dc3e092df6028a0fb2415953c Mon Sep 17 00:00:00 2001 From: Matthias Simon Date: Sun, 3 Jul 2022 14:40:46 +0200 Subject: [PATCH] Skip project discovery for version command --- cmd/ntt/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/ntt/main.go b/cmd/ntt/main.go index bfebf2f5..6046ab62 100644 --- a/cmd/ntt/main.go +++ b/cmd/ntt/main.go @@ -49,7 +49,8 @@ var ( } } - if cmd.Use == "ntt" { + // Skip opening the project if we're running a custom command or version. + if cmd.Use == "ntt" || cmd.Use == "version" { // first arg is either an external subkommand of the form // k3-Arg[0] or ntt-Arg[0] or unknown return nil