@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux phpmyadmin-ubuntu-m-2vcpu-16gb-blr1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
Current Path :
/
usr
/
share
/
bash-completion
/
completions
/
Path :
Upload File :
New :
File
Dir
//usr/share/bash-completion/completions/ua
# bash completion for ubuntu-advantage-tools SERVICES="cc-eal cis-audit esm-infra fips fips-updates livepatch" _ua_complete() { local cur_word prev_word cur_word="${COMP_WORDS[COMP_CWORD]}" prev_word="${COMP_WORDS[COMP_CWORD-1]}" subcmds=$(ua --help | awk '/^\s*$|Available|Use/ {next;} /Flags:/{flag=1;next}/Use ubuntu-avantage/{flag=0}flag{ if ( $1 ~ /,/ ) { print $2} else print $1}') base_params="" case ${COMP_CWORD} in 1) COMPREPLY=($(compgen -W "$base_params $subcmds" -- $cur_word)) ;; 2) case ${prev_word} in disable) COMPREPLY=($(compgen -W "$SERVICES" -- $cur_word)) ;; enable) COMPREPLY=($(compgen -W "$SERVICES" -- $cur_word)) ;; esac ;; *) COMPREPLY=() ;; esac } complete -F _ua_complete ua # vi: syntax=sh expandtab