Files
2026-01-08 20:36:16 -08:00

24 lines
442 B
Go

// Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
package commands
import (
"os/exec"
"github.com/luxfi/constants"
"github.com/onsi/gomega"
)
func GetVersion() string {
/* #nosec G204 */
cmd := exec.Command(
CLIBinary,
"--version",
"--"+constants.SkipUpdateFlag,
)
output, err := cmd.Output()
gomega.Expect(err).Should(gomega.BeNil())
return string(output)
}