summaryrefslogtreecommitdiff
path: root/internal/askcli/command_dep.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-23 13:35:07 +0200
committerPaul Buetow <paul@buetow.org>2026-03-23 13:35:07 +0200
commitbc0849e96fe41e509af4306c0953f463a7fad155 (patch)
treeca80dd932d177bdbe9eb80cb8bffe4197d50e625 /internal/askcli/command_dep.go
parent462184dff3eef32f01f06634305da1355ac1bec2 (diff)
fix: accept uuid: prefix on all ask subcommands via NormalizeUUID
All ask commands now strip a leading "uuid:" prefix from user-supplied UUID arguments before building the taskwarrior filter, so both bare UUIDs and the "uuid:<value>" format work uniformly across annotate, start, stop, done, modify, denotate, priority, tag, info, delete, and dep. 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.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/askcli/command_dep.go b/internal/askcli/command_dep.go
index 6e3198c..a399c84 100644
--- a/internal/askcli/command_dep.go
+++ b/internal/askcli/command_dep.go
@@ -30,12 +30,12 @@ func (d Dispatcher) handleDepAddRm(ctx context.Context, args []string, stdout, s
io.WriteString(stderr, "error: ask dep add/rm requires <uuid> <dep-uuid>\n")
return 1, nil
}
- uuid := args[2]
+ uuid := NormalizeUUID(args[2])
if IsNumericID(uuid) {
io.WriteString(stderr, RejectNumericID())
return 1, nil
}
- depUUID := args[3]
+ depUUID := NormalizeUUID(args[3])
if IsNumericID(depUUID) {
io.WriteString(stderr, RejectNumericID())
return 1, nil
@@ -62,7 +62,7 @@ func (d Dispatcher) handleDepList(ctx context.Context, args []string, stdout, st
io.WriteString(stderr, "error: ask dep list requires <uuid>\n")
return 1, nil
}
- uuid := args[2]
+ uuid := NormalizeUUID(args[2])
if IsNumericID(uuid) {
io.WriteString(stderr, RejectNumericID())
return 1, nil