add support for shell completion

This commit is contained in:
2026-01-23 17:09:11 +00:00
parent 88d41fd700
commit 2f0f9bd904
4 changed files with 51 additions and 8 deletions

View File

@@ -12,6 +12,7 @@ For an outline of past/future changes refer to: [CHANGELOG](CHANGELOG.md)
- [Configuration](#configuration)
- [Style](#style)
- [Commands](#commands)
- [Shell Completion](#shell-completion)
- [License](#license)
## Installation
@@ -818,6 +819,22 @@ gobs-cli media restart "Media"
```
## Shell Completion
- completion:
*optional*
- args: Shell
```console
gobs-cli completion
gobs-cli completion bash
```
Currently supported shells: *bash* *zsh* *fish*. If no shell is passed completion will attempt to detect the current user shell.
## License
`gobs-cli` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.