refactor(cmd): replace global vars with flags for agent mode params

Use command-line flags for edit instructions and scaffold descriptions
instead of global variables to improve modularity and avoid globals.
This commit is contained in:
Gregory Gauthier 2026-03-04 14:09:04 +00:00
parent 2809b55912
commit 426288b356
2 changed files with 0 additions and 4 deletions

View File

@ -19,8 +19,6 @@ var editCmd = &cobra.Command{
Run: runEdit,
}
var editInstruction string // set by agent mode when calling from chat --agent
func init() {
editCmd.Flags().String("instruction", "", "Edit instruction (used internally by agent mode)")
rootCmd.AddCommand(editCmd)

View File

@ -19,8 +19,6 @@ var scaffoldCmd = &cobra.Command{
Run: runScaffold,
}
var scaffoldDescription string // set by agent mode when calling from chat --agent
func init() {
scaffoldCmd.Flags().String("description", "", "Scaffold description (used internally by agent mode)")
rootCmd.AddCommand(scaffoldCmd)