feat(talosctl): Add completions for talosctl

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
This commit is contained in:
Jonathan Stacks 2024-11-27 01:13:04 -06:00
commit 92c28758b9
No known key found for this signature in database
GPG key ID: FB934A2184BB941E
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,20 @@
# talosctl plugin
This plugin adds completion for the [talosctl](https://docs.siderolabs.com/talos/v1.12/learn-more/talosctl) CLI for managing [Talos](https://github.com/siderolabs/talos) Linux.
To use it, add `talosctl` to the plugins array in your zshrc file:
```zsh
plugins=(... talosctl)
```
This plugin does not add any aliases.
## Cache
This plugin caches the completion script and is automatically updated asynchronously when the plugin is
loaded, which is usually when you start up a new terminal emulator.
The cache is stored at:
- `$ZSH_CACHE/completions/_talosctl` completions script