Files
draft/cmd/version.go
T
FernandoJVideira d7e4c554d8 chore: rename keystone to draft
Rename the module, CLI command name, and all references from
keystone/basalt to draft, and fix the stale build/README content
found along the way.
2026-08-25 13:55:24 +01:00

24 lines
446 B
Go

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)
},
}