version: output to stdout

This commit is contained in:
Joel Elkins 2022-07-29 19:53:28 -05:00
parent 29d32e4740
commit 6b2dd74edc
No known key found for this signature in database
GPG Key ID: 133589DC38921AE2

View File

@ -23,6 +23,7 @@ package cmd
import ( import (
_ "embed" _ "embed"
"fmt"
"strings" "strings"
"github.com/spf13/cobra" "github.com/spf13/cobra"
@ -34,7 +35,7 @@ var versionCmd = &cobra.Command{
Short: "Show version info", Short: "Show version info",
Long: `Output the ccl binary's version`, Long: `Output the ccl binary's version`,
Run: func(cmd *cobra.Command, _ []string) { Run: func(cmd *cobra.Command, _ []string) {
cmd.Println("ccl version", Version) fmt.Println("ccl version", Version)
}, },
} }