mirror of
https://gitea.elkins.co/Networking/ccl.git
synced 2025-03-09 04:31:38 -05:00
version: output to stdout
This commit is contained in:
parent
29d32e4740
commit
6b2dd74edc
@ -23,6 +23,7 @@ package cmd
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
@ -34,7 +35,7 @@ var versionCmd = &cobra.Command{
|
||||
Short: "Show version info",
|
||||
Long: `Output the ccl binary's version`,
|
||||
Run: func(cmd *cobra.Command, _ []string) {
|
||||
cmd.Println("ccl version", Version)
|
||||
fmt.Println("ccl version", Version)
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user