package cli import ( "fmt" "github.com/spf13/cobra" ) const version = "0.1.0" func init() { versionCmd := &cobra.Command{ Use: "version", Short: "Print version", Run: func(cmd *cobra.Command, args []string) { fmt.Printf("heatwave-autopilot v%s\n", version) }, } rootCmd.AddCommand(versionCmd) }