Public Access
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).
23 lines
386 B
Go
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)
|
|
},
|
|
}
|