Enhance command structure and user feedback in task management

- Added SprintCmd to issues command group
- taskLoop hide survey related commands when in repl
- Updated coding task instructions for clarity
- Removed redundant SprintCmd registration
- Improved REPL command handling for better user experience avoiding a chash if users type pm
- Enhanced task UI to display additional information
This commit is contained in:
Robin Olsen
2026-04-03 11:19:57 +02:00
parent b3a52759ee
commit 1cfd23f1b0
6 changed files with 25 additions and 10 deletions

View File

@@ -158,7 +158,12 @@ func runStartCmd(cmd *cobra.Command, args []string) error {
return nil
}
func taskLoop(ctx context.Context, application *task.App, surveyTasks map[string]task.Tasker, interfaces map[string]task.Interface) error {
func taskLoop(
ctx context.Context,
application *task.App,
surveyTasks map[string]task.Tasker,
interfaces map[string]task.Interface,
) error {
var iNames []string
for name := range interfaces {
iNames = append(iNames, name)
@@ -196,6 +201,15 @@ func taskLoop(ctx context.Context, application *task.App, surveyTasks map[string
return fmt.Errorf("failed to write task details: %w", err)
}
if tasks.InterfaceToType(selected) == tasks.InterfaceTypeREPL {
survey.StartCmd.Hidden = true
survey.StatusCmd.Hidden = true
survey.SubmitCmd.Hidden = true
replCmd.Hidden = true
tuiCmd.Hidden = true
webCmd.Hidden = true
}
fmt.Println("\033[H\033[2J")
if err := runner.Run(ctx, t, selected, tasks.InterfaceToType(selected)); err != nil {
return err