package cmd import ( "fmt" "github.com/spf13/cobra" ) // Default version (we will change this dynamically later!) var version = "dev" func init() { rootCmd.AddCommand(versionCmd) } var versionCmd = &cobra.Command{ Use: "version", Short: "Display the version of Draft", Long: `Display the current version of the Draft CLI tool.`, Run: func(cmd *cobra.Command, args []string) { fmt.Printf("Draft CLI version: %s\n", version) }, }