summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-27 07:26:19 +0200
committerPaul Buetow <paul@buetow.org>2026-03-27 07:26:19 +0200
commitaac01f41e7247c05170ad4b4cb935da171a5ac97 (patch)
tree82c2637ebb079c4ea592e5bab54139752dcf7861 /internal
parentc4354f1985089366d673a89664d7428337d0e56c (diff)
Remove dead UUID completion items (61568dc2-6915-4444-8027-2ad4eacf2408)
Diffstat (limited to 'internal')
-rw-r--r--internal/askcli/completion.go13
-rw-r--r--internal/askcli/completion_test.go5
2 files changed, 5 insertions, 13 deletions
diff --git a/internal/askcli/completion.go b/internal/askcli/completion.go
index 1e292d5..0f6c47b 100644
--- a/internal/askcli/completion.go
+++ b/internal/askcli/completion.go
@@ -49,19 +49,6 @@ var askDepCompletionItems = []fishCompletionItem{
{name: "list", description: "List dependencies"},
}
-var askUUIDCompletionItems = []fishCompletionItem{
- {name: "info", description: "Show task details"},
- {name: "annotate", description: "Add an annotation"},
- {name: "start", description: "Start a task"},
- {name: "stop", description: "Stop a task"},
- {name: "done", description: "Mark a task complete"},
- {name: "priority", description: "Set priority"},
- {name: "tag", description: "Add or remove a tag"},
- {name: "modify", description: "Modify task fields"},
- {name: "denotate", description: "Remove an annotation"},
- {name: "delete", description: "Delete a task"},
-}
-
func fishSingleSelectorCompletionContext(positional []string) bool {
if len(positional) != 1 {
return false
diff --git a/internal/askcli/completion_test.go b/internal/askcli/completion_test.go
index fe18ddc..9762975 100644
--- a/internal/askcli/completion_test.go
+++ b/internal/askcli/completion_test.go
@@ -35,6 +35,11 @@ func TestFishCompletion_IncludesCommandsAndExcludesExport(t *testing.T) {
if strings.Contains(script, "assets/ask.fish") {
t.Fatalf("script should not reference a static asset")
}
+ for _, name := range []string{"info", "annotate", "start", "stop", "done", "priority", "tag", "modify", "denotate", "delete"} {
+ if strings.Contains(script, "complete -c ask -n '__ask_in_uuid_context' -a '"+name+"'") {
+ t.Fatalf("script should not hard-code UUID completion item %q", name)
+ }
+ }
}
func TestFishSingleSelectorCompletionContext(t *testing.T) {