LocalAI/core/cli
LocalAI [bot] efd402207c
feat: Add shell completion support for bash, zsh, and fish (#8851)
feat: add shell completion support for bash, zsh, and fish

- Add core/cli/completion.go with dynamic completion script generation
- Add core/cli/completion_test.go with unit tests
- Modify cmd/local-ai/main.go to support completion command
- Modify core/cli/cli.go to add Completion subcommand
- Add docs/content/features/shell-completion.md with installation instructions

The completion scripts are generated dynamically from the Kong CLI model,
so they automatically include all commands, subcommands, and flags.

Co-authored-by: localai-bot <localai-bot@noreply.github.com>
2026-03-08 09:32:39 +01:00
..
context chore: allow to set local-ai log format, default to custom one (#7679) 2025-12-21 21:21:59 +01:00
worker chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
backends.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
cli.go feat: Add shell completion support for bash, zsh, and fish (#8851) 2026-03-08 09:32:39 +01:00
completion.go feat: Add shell completion support for bash, zsh, and fish (#8851) 2026-03-08 09:32:39 +01:00
completion_test.go feat: Add shell completion support for bash, zsh, and fish (#8851) 2026-03-08 09:32:39 +01:00
explorer.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
federated.go chore: update cogito and simplify MCP logics (#6413) 2025-10-09 12:36:45 +02:00
models.go fix(cli): import via CLI needs system state (#7746) 2025-12-27 11:10:28 +01:00
run.go feat: add agentic management (#8820) 2026-03-07 00:03:08 +01:00
soundgeneration.go fix: Remove debug print statement from soundgeneration.go (C2) (#8843) 2026-03-08 08:49:29 +01:00
transcript.go fix: rename json_verbose to verbose_json (#8627) 2026-02-23 17:57:06 +00:00
tts.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00
util.go chore(refactor): move logging to common package based on slog (#7668) 2025-12-21 19:33:13 +01:00