/
stapler
/
stplr
Обзор
Документация
Войти
/
stapler
/
stplr
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
main
scripts/completion/zsh
29 строк
858 B
Maxim Slipenko
feat: migrate to urfave/cli v3 and move build command logic to service (#96)
09 сен 2025, 10:18
Не верифицирован
09 сен 2025, 10:18
a68a166
Код
Авторство
О чём код?
#compdef stplr compdef _stplr stplr # This is a shell completion script auto-generated by https://github.com/urfave/cli for zsh. _stplr() { local -a opts # Declare a local array local current current=${words[-1]} # -1 means "the last element" if [[ "$current" == "-"* ]]; then # Current word starts with a hyphen, so complete flags/options opts=("${(@f)$(${words[@]:0:#words[@]-1} ${current} --generate-shell-completion)}") else # Current word does not start with a hyphen, so complete subcommands opts=("${(@f)$(${words[@]:0:#words[@]-1} --generate-shell-completion)}") fi if [[ "${opts[1]}" != "" ]]; then _describe 'values' opts else _files fi } # Don't run the completion function when being source-ed or eval-ed. # See https://github.com/urfave/cli/issues/1874 for discussion. if [ "$funcstack[1]" = "_stplr" ]; then _stplr fi