Files
zeit/z/version.go
T
マリウス a0b33ddfd2 Zeit -> zeit
2020-10-15 21:38:11 +01:00

23 lines
340 B
Go

package z
import (
"fmt"
"github.com/spf13/cobra"
)
var VERSION string
func init() {
rootCmd.AddCommand(versionCmd)
}
var versionCmd = &cobra.Command{
Use: "version",
Short: "Display what Zeit it is",
Long: `The version of Zeit.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("zeit", VERSION)
},
}