summaryrefslogtreecommitdiff
path: root/internal/askcli/commands_registry.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-08 10:17:56 +0300
committerPaul Buetow <paul@buetow.org>2026-04-08 10:17:56 +0300
commit66811bb5c21fa674b19767f34ff7d27004f838b4 (patch)
tree1535208ed3fe4ad3a0d30520d00ee1f3f015f77e /internal/askcli/commands_registry.go
parent385278639394e3672bce678b49e51f14ac72638c (diff)
fish: complete task selectors with short aliases only
Add complete-aliases subcommand that emits tab-separated alias lines without UUID duplicates. Wire embedded Fish script (__do_task_selectors) to call complete-aliases; keep complete-uuids unchanged for scripts and tests. Made-with: Cursor
Diffstat (limited to 'internal/askcli/commands_registry.go')
-rw-r--r--internal/askcli/commands_registry.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/askcli/commands_registry.go b/internal/askcli/commands_registry.go
index 4d8d9ba..1c2e60d 100644
--- a/internal/askcli/commands_registry.go
+++ b/internal/askcli/commands_registry.go
@@ -204,4 +204,10 @@ func init() {
handler: wrapSimpleCommand((*Dispatcher).handleCompleteUUIDs),
includeInCompletion: false,
})
+ commandRegistry.add(commandEntry{
+ name: "complete-aliases",
+ description: "Emit short task selector list for Fish completion",
+ handler: wrapSimpleCommand((*Dispatcher).handleCompleteAliases),
+ includeInCompletion: false,
+ })
}