This commit is contained in:
Vas N 2026-01-05 20:44:29 +05:30 committed by GitHub
commit 65664358db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# Cartridge
This plugin provides completion for Tarantool [cartridge](https://www.tarantool.io/en/cartridge/) commands.
To use it add `cartridge` to the plugins array in your .zshrc file.
```zsh
plugins=(... cartridge)
```

View file

@ -0,0 +1,11 @@
# Cartridge basic commands
_cartridge_get_command_list () {
cartridge | sed "1,/Available Commands/d" | awk '/^[ \t]*[a-z]+/ { print $1 }'
}
_cartridge () {
compadd `_cartridge_get_command_list`
}
compdef _cartridge cartridge