summaryrefslogtreecommitdiff
path: root/internal/askcli/command_dep.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-23 08:21:27 +0200
committerPaul Buetow <paul@buetow.org>2026-03-23 08:21:27 +0200
commit1e2e96f92d6fb25ae55303d90444534369bda0aa (patch)
treec809ee89978c6de886f66541807d3efc447ac180 /internal/askcli/command_dep.go
parent4958ea5100ebf8d4ff9fd818b7bc59d01989feb4 (diff)
fix: correct taskwarrior filter ordering in dep and info commands
- command_dep.go handleDepAddRm: was passing uuid as a modification argument (task modify <uuid> depends:...) which could modify ALL agent tasks; now uses uuid:<uuid> as filter - command_dep.go handleDepList: updated deprecated 'uuid <value>' space syntax to canonical 'uuid:<uuid>' colon syntax - command_info_add.go handleInfo: same space→colon fix for consistency All mutation commands now uniformly use uuid:<uuid> as the filter before the action verb. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/askcli/command_dep.go')
-rw-r--r--internal/askcli/command_dep.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/askcli/command_dep.go b/internal/askcli/command_dep.go
index 035186e..7f51fdc 100644
--- a/internal/askcli/command_dep.go
+++ b/internal/askcli/command_dep.go
@@ -48,7 +48,8 @@ func (d Dispatcher) handleDepAddRm(ctx context.Context, args []string, stdout, s
modArg = "depends:-" + depUUID
}
var outBuf bytes.Buffer
- code, err := d.runner.Run(ctx, []string{"modify", uuid, modArg}, nil, &outBuf, io.Discard)
+ // uuid:<uuid> scopes the modify to exactly one task; modArg sets the dependency.
+ code, err := d.runner.Run(ctx, []string{"uuid:" + uuid, "modify", modArg}, nil, &outBuf, io.Discard)
if code != 0 {
return code, err
}
@@ -67,7 +68,7 @@ func (d Dispatcher) handleDepList(ctx context.Context, args []string, stdout, st
return 1, nil
}
var outBuf bytes.Buffer
- code, err := d.runner.Run(ctx, []string{"uuid", uuid, "export"}, nil, &outBuf, stderr)
+ code, err := d.runner.Run(ctx, []string{"uuid:" + uuid, "export"}, nil, &outBuf, stderr)
if code != 0 {
return code, err
}