Show version info

This commit is contained in:
andig 2020-05-18 14:32:11 +02:00
parent 1b1a48cf99
commit e0fd234da0

View file

@ -22,9 +22,10 @@ var (
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "evcc",
Short: "EV Charge Controller",
Run: run,
Use: "evcc",
Short: "EV Charge Controller",
Version: fmt.Sprintf("%s (%s)", server.Version, server.Commit),
Run: run,
}
func bind(cmd *cobra.Command, flag string) {