Files
NilsBriggenandClaude Opus 5.5 d4e1fbe87d CLI: scenes, banks, profiles, mic, JSON, real volume
- Strips can be named by the label you gave them; names ignore case.
- New: mic, banks, scenes, scene save, profile, profiles, state (JSON).
- --json for strips, banks, scenes and profiles.
- set --volume sets the volume itself, through the strip's range and curve.
- bank N checks N against the profile's banks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 09:17:50 +02:00

20 lines
974 B
Bash

# bash completion for slidewire
_slidewire() {
local cur prev
cur=${COMP_WORDS[COMP_CWORD]}
prev=${COMP_WORDS[COMP_CWORD-1]}
if [[ $COMP_CWORD -eq 1 ]]; then
COMPREPLY=($(compgen -W "strips set mute mic bank banks scene scenes profile profiles state --minimized --list-ports --monitor --doctor --install-icon --uninstall --write-icons --version --help" -- "$cur"))
return
fi
case ${COMP_WORDS[1]} in
mute) [[ $COMP_CWORD -eq 3 ]] && COMPREPLY=($(compgen -W "on off toggle" -- "$cur")) ;;
mic) [[ $COMP_CWORD -eq 2 ]] && COMPREPLY=($(compgen -W "on off toggle" -- "$cur")) ;;
scene) [[ $COMP_CWORD -eq 2 ]] && COMPREPLY=($(compgen -W "save" -- "$cur")) ;;
set) COMPREPLY=($(compgen -W "--volume" -- "$cur")) ;;
strips|scenes|banks|profiles) COMPREPLY=($(compgen -W "--json" -- "$cur")) ;;
--write-icons) COMPREPLY=($(compgen -d -- "$cur")) ;;
esac
}
complete -F _slidewire slidewire