15 lines
277 B
Cheetah
15 lines
277 B
Cheetah
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var versionCmd = &cobra.Command{
|
|
Use: "version",
|
|
Short: "Print the version number of {{.PackageName}}",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
fmt.Println("{{.PackageName}} ~ {{.ProgramVersion}}")
|
|
},
|
|
}
|