mirror of
https://gitea.elkins.co/Networking/ccl.git
synced 2025-03-09 12:41:40 -05:00
version: output to stdout
This commit is contained in:
parent
29d32e4740
commit
6b2dd74edc
@ -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)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user