Commit e6e7ac3
Changed files (2)
cmd
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