@@ -22,7 +22,8 @@ var taskCmd = &cobra.Command{
2222 Short : "Task management commands" ,
2323 Long : `Manage tasks: dispatch tasks to new directories and sync back changes.
2424
25- Use --tui flag to enable interactive terminal UI mode with:
25+ TUI mode is enabled by default. Use --no-tui to disable.
26+ Features in TUI mode:
2627- Task selection list (arrow keys to navigate)
2728- Confirmation dialogs
2829- Progress spinners` ,
@@ -38,7 +39,7 @@ In TUI mode, you can interactively select the task to dispatch.
3839
3940Example:
4041 spark task dispatch my-task --dest ./workspace/my-task
41- spark task dispatch --tui ` ,
42+ spark task dispatch` ,
4243 Args : cobra .MaximumNArgs (1 ),
4344 RunE : func (cmd * cobra.Command , args []string ) error {
4445 if taskDir == "" {
@@ -69,7 +70,7 @@ In TUI mode, you can interactively select the task to sync.
6970
7071Example:
7172 spark task sync my-task --work-path ./workspace/my-task
72- spark task sync --tui ` ,
73+ spark task sync` ,
7374 Args : cobra .MaximumNArgs (1 ),
7475 RunE : func (cmd * cobra.Command , args []string ) error {
7576 if taskDir == "" {
@@ -97,7 +98,7 @@ var taskListCmd = &cobra.Command{
9798 taskDir = "."
9899 }
99100
100- mgr := task .NewManager (taskDir , githubOwner , workDir , false )
101+ mgr := task .NewManager (taskDir , githubOwner , workDir , useTUI )
101102
102103 // List task directories
103104 tasks , err := mgr .ListTasks ()
@@ -319,8 +320,7 @@ Requirements:
319320 - github-task-workflow must be configured
320321
321322Example:
322- spark task impl my-feature
323- spark task impl my-feature --tui` ,
323+ spark task impl my-feature` ,
324324 Args : cobra .ExactArgs (1 ),
325325 RunE : func (cmd * cobra.Command , args []string ) error {
326326 if taskDir == "" {
@@ -338,7 +338,7 @@ func init() {
338338 taskCmd .PersistentFlags ().StringVar (& taskDir , "task-dir" , "" , "Task directory containing all tasks" )
339339 taskCmd .PersistentFlags ().StringVar (& githubOwner , "owner" , "" , "GitHub owner for creating repositories" )
340340 taskCmd .PersistentFlags ().StringVar (& workDir , "work-dir" , "." , "Working directory for dispatched tasks" )
341- taskCmd .PersistentFlags ().BoolVar (& useTUI , "tui" , false , "Enable interactive TUI mode" )
341+ taskCmd .PersistentFlags ().BoolVar (& useTUI , "tui" , true , "Disable TUI mode" )
342342
343343 viper .BindPFlag ("task_dir" , taskCmd .PersistentFlags ().Lookup ("task-dir" ))
344344 viper .BindPFlag ("github_owner" , taskCmd .PersistentFlags ().Lookup ("owner" ))
0 commit comments