Files
FernandoJVideira 613efed0f2 Merge branch 'main' into dev: bring in keystone->draft rename
Resolves conflicts with dev's install-logic commit by keeping draft's
module path/binary names and dropping a stray junk file (.cursor/test.txt).
2026-08-25 13:57:29 +01:00

23 lines
386 B
Go

package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
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)
},
}