Commit e6e7ac3

bryfry <bryon@fryer.io>
2025-09-17 12:10:17
tl --all
1 parent 8148466
Changed files (2)
cmd/task_list.go
@@ -16,6 +16,7 @@ import (
 var (
 	listShowResponses bool
 	listTaskLimit     int
+	listShowAll       bool
 )
 
 var taskListCmd = &cobra.Command{
@@ -31,6 +32,7 @@ func init() {
 	rootCmd.AddCommand(taskListCmd)
 	taskListCmd.Flags().BoolVar(&listShowResponses, "responses", false, "Show task responses/output")
 	taskListCmd.Flags().IntVar(&listTaskLimit, "limit", 10, "Maximum number of tasks to display")
+	taskListCmd.Flags().BoolVar(&listShowAll, "all", false, "Show all tasks (same as --limit 0)")
 }
 
 func runTaskList(cmd *cobra.Command, args []string) error {
@@ -58,6 +60,10 @@ func runTaskList(cmd *cobra.Command, args []string) error {
 	}
 
 	// Apply limit from the end (keep newest tasks if limiting)
+	// If --all flag is set, show all tasks (equivalent to --limit 0)
+	if listShowAll {
+		listTaskLimit = 0
+	}
 	if listTaskLimit > 0 && len(tasks) > listTaskLimit {
 		tasks = tasks[len(tasks)-listTaskLimit:]
 	}
TODO.md
@@ -1,10 +1,11 @@
 - ✅ grep should also look at the command execution strings too, not just output
 - ✅ Renamed project from go-mythic to mysh (pronounced mɪʃh)
-- forge payloads - equivalency with execute_assembly and inline_assembly
 - task-list --all (same as --limit 0)
 - task-list without callback lists all tasks and shows callback column
 - task with --no-wait, doesn't wait for output
 - task [callback] arg make it accept lists, comma seperated, or ranges e.g. 1,2,3-5,10
+- invert cobra-cli nto functions (no global vars)
+- forge payloads - equivalency with execute_assembly and inline_assembly
 
 ## Code Quality Improvements