From 5c202d369119d540c0206ce0f44497e323520a91 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Fri, 26 Mar 2021 11:49:44 +0100 Subject: [PATCH] feat(cli): Add LTL version in the versions command --- src/cli/cmd/versions.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cli/cmd/versions.go b/src/cli/cmd/versions.go index 99f2f6b0..668bcd49 100644 --- a/src/cli/cmd/versions.go +++ b/src/cli/cmd/versions.go @@ -10,7 +10,13 @@ import ( ) func printVersion(cmd string) { - cmdVersion := exec.Command(cmd, "--version") + arg := "--version" + + if cmd == "detsys-ltl" { + arg = "version" + } + + cmdVersion := exec.Command(cmd, arg) out, err := cmdVersion.CombinedOutput() if err != nil { @@ -36,6 +42,7 @@ var versionsCmd = &cobra.Command{ "detsys-debug", "detsys-generator", "detsys-ldfi", + "detsys-ltl", "detsys-scheduler", } for _, cmd := range cmds {