diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-27 11:33:33 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-27 11:33:33 +0200 |
| commit | f57ccb885d20c48e1dae65b8ad5c46375b9a11a9 (patch) | |
| tree | a023c5f5af65cfe8f20354c388c683c57437e5d2 /internal/askcli/completion.go | |
| parent | 56e9f980e52a53197ace71acdb277ba0e0368916 (diff) | |
docs: document askcli exports
Diffstat (limited to 'internal/askcli/completion.go')
| -rw-r--r-- | internal/askcli/completion.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/askcli/completion.go b/internal/askcli/completion.go index 0f6c47b..b4d8620 100644 --- a/internal/askcli/completion.go +++ b/internal/askcli/completion.go @@ -85,10 +85,12 @@ func fishAddDependencyModifierCompletionContext(positional []string, current str return current == "depends" || strings.HasPrefix(current, "depends:") } +// FishCompletion returns the default Fish completion script for the ask CLI. func FishCompletion() string { return FishCompletionFor("ask") } +// FishCompletionFor returns a Fish completion script that points to the provided binary path. func FishCompletionFor(binaryPath string) string { var b strings.Builder writeFishPreamble(&b) |
