ente/cli/cmd/version.go

22 lines
350 B
Go
Raw Normal View History

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
// versionCmd represents the version command
var versionCmd = &cobra.Command{
Use: "version",
Short: "Prints the current version",
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
2023-10-25 11:52:22 +00:00
fmt.Printf("Version %s\n", AppVersion)
},
}
func init() {
rootCmd.AddCommand(versionCmd)
}