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
[44;97;1m 🤖 Plandex [0;0;22m 🏗️ Rebuild paths invalidated by context update
Dane Schneider9d0921af2a69
diff --git a/app/cli/cmd/root.go b/app/cli/cmd/root.goindex 1fb20c0b..123cafab 100644--- a/app/cli/cmd/root.go+++ b/app/cli/cmd/root.go@@ -1,15 +1,25 @@-package cmd+func init() {+ var helpCmd = &cobra.Command{+ Use: "help",+ Short: "Display help for Plandex",+ Long: `Display help for Plandex.`,+ Run: func(cmd *cobra.Command, args []string) {+ term.PrintCustomHelp()+ },+ }-import (- "plandex/term"+ RootCmd.AddCommand(helpCmd)+}package cmd+import ("github.com/spf13/cobra"+ "plandex/term")// RootCmd represents the base command when called without any subcommandsvar RootCmd = &cobra.Command{- Use: `plandex [command] [flags]`,- Short: "Plandex: iterative development with AI",+ Use: `plandex [command] [flags]`,+ // Short: "Plandex: iterative development with AI",Run: func(cmd *cobra.Command, args []string) {run(cmd, args)},@@ -19,7 +29,8 @@ var RootCmd = &cobra.Command{// This is called by main.main(). It only needs to happen once to the rootCmd.func Execute() {if err := RootCmd.Execute(); err != nil {- term.OutputErrorAndExit("Error executing root command: %v", err)+ // term.OutputErrorAndExit("Error executing root command: %v", err)+ log.Fatalf("Error executing root command: %v", err)}}diff --git a/app/cli/term/term.go b/app/cli/term/term.goindex 3bf65c3c..1801b99a 100644--- a/app/cli/term/term.go+++ b/app/cli/term/term.go@@ -1,5 +1,49 @@package term+// PrintCustomHelp prints the custom help output for the Plandex CLI+func PrintCustomHelp() {+ fmt.Println("Usage:")+ fmt.Println(" plandex [command] [flags]")+ fmt.Println(" pdx [command] [flags]")+ fmt.Println()++ // Core functionalities+ fmt.Println("Core Commands:")+ PrintCmds("", "new", "load", "tell", "changes", "apply", "continue")+ fmt.Println()++ // Plan management+ fmt.Println("Plan Management:")+ PrintCmds("", "current", "plans", "cd", "delete-plan")+ fmt.Println()++ // Branch management+ fmt.Println("Branch Management:")+ PrintCmds("", "branches", "checkout", "delete-branch")+ fmt.Println()++ // Context management+ fmt.Println("Context Management:")+ PrintCmds("", "ls", "rm", "clear")+ fmt.Println()++ // Advanced features+ fmt.Println("Advanced Features:")+ PrintCmds("", "build", "models", "set-model", "log", "convo", "rewind")+ fmt.Println()++ // Streaming and collaboration+ fmt.Println("Streaming and Collaboration:")+ PrintCmds("", "ps", "connect", "stop")+ fmt.Println()++ // Help and settings+ fmt.Println("Help and Settings:")+ PrintCmds("", "help", "sign-in")+ fmt.Println()+}+package term+import ("fmt""log"