diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 10:17:56 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 10:17:56 +0300 |
| commit | 66811bb5c21fa674b19767f34ff7d27004f838b4 (patch) | |
| tree | 1535208ed3fe4ad3a0d30520d00ee1f3f015f77e /internal/askcli/commands_registry.go | |
| parent | 385278639394e3672bce678b49e51f14ac72638c (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.go | 6 |
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, + }) } |
