ots/cmd/ots-cli/cmd_version.go
Knut Ahlers 3df42cbd32
Lint: Resolve unused-parameter error
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2024-03-02 11:19:11 +01:00

19 lines
300 B
Go

package main
import (
"fmt"
"github.com/spf13/cobra"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Displays the tool version",
Run: func(*cobra.Command, []string) {
fmt.Printf("ots-cli %s\n", version) //nolint:forbidigo
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}