Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
🤖 Plandex → apply pending changes ✏️ Add version command to Plandex CLI ✏️ Set version as a build variable to automate version updates
Dane Schneidera5d3a90c2678
diff --git a/app/cli/cmd/version.go b/app/cli/cmd/version.gonew file mode 100644index 00000000..0e58aa6f--- /dev/null+++ b/app/cli/cmd/version.go@@ -0,0 +1,24 @@+package cmd++import (+ "fmt"++ "github.com/spf13/cobra"+)++// Version will be set at build time using -ldflags+var Version = "development"++// versionCmd represents the version command+var versionCmd = &cobra.Command{+ Use: "version",+ Short: "Print the version number of Plandex",+ Long: `All software has versions. This is Plandex's`,+ Run: func(cmd *cobra.Command, args []string) {+ fmt.Println("Plandex CLI Version:", Version)+ },+}++func init() {+ RootCmd.AddCommand(versionCmd)+}