Changeset 5205:f3a15f146010 in roaraudio


Ignore:
Timestamp:
10/29/11 01:50:22 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

updated bash completion file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/bash/roaraudio

    r5136 r5205  
    1111# Tools supported completly: 
    1212#roard 
     13#roar-config 
    1314 
    1415# Tools supported partly: 
     16#roarctl (volume not implemented correctly) 
    1517 
    1618# Tools not supported at all: 
     
    1921 
    2022# Unsupported devel tools: 
     23#roartypes 
    2124 
    2225# The rest: 
     
    2831#roarmonhttp 
    2932#roarradio 
    30 #roarctl 
    3133#roarlight 
    3234#roarinterconnect 
     
    3739#roarphone 
    3840#roarshout 
    39 #roartypes 
    40 #roar-config 
    4141#roarvorbis 
    4242#roarsin 
     
    127127#phi@ph7:roaraudio $ echo $(grep '^#define ROAR_META_TYPE_' include/roaraudio/meta.h  | cut -d_ -f4,5,6,7,8,9 | cut -d' ' -f1 | tr A-Z a-z) 
    128128    COMPREPLY=($(compgen -W "none title album author autor artist version date license tracknumber organization description genre location contact streamurl homepage thumbnail length comment other filename fileurl server duration www woaf encoder encodedby year discid rpg_track_peak rpg_track_gain rpg_album_peak rpg_album_gain hash signalinfo audioinfo offset performer copyright likeness composer rights isrc language gtin isbn ean publisher discnumber sourcemedia label labelno" -- ${cur})) 
     129} 
     130 
     131_roar_role() { 
     132    local cur 
     133    cur="${COMP_WORDS[COMP_CWORD]}" 
     134    COMPREPLY=($(compgen -W "unknown none music video game event beep phone background_music voice instrument rhythm click mixed" -- ${cur})) 
    129135} 
    130136 
     
    474480    fi 
    475481 
    476     opts="--server --help --verbose -v --list-aiprofiles" 
    477     cmds="help sleep ping whoami listaiprofiles aiprofileget standby off resume on standbymode exit terminate volume flag unflag kick newvirtual metaget metasave metaload serveroinfo listclients liststreams allinfo" 
     482    opts="--server --help --verbose -v --list-aiprofiles --list-libstandards --enum-servers --hash-password" 
     483    cmds="help sleep ping whoami listaiprofiles aiprofileget standby off resume on standbymode exit terminate volume flag unflag kick newvirtual metaget metasave metaload serveroinfo listclients liststreams allinfo toogleflag protectflag role serverinfo servertime serveroinfo2 serverstandards libstandards clientinfo streaminfo" 
    478484 
    479485    case "${pprev}" in 
     
    482488            return 0 
    483489            ;; 
    484         'flag') 
    485             _roar_flag 
    486             return 0 
    487             ;; 
    488         'unflag') 
     490        'flag'|'unflag'|'toogleflag'|'protectflag') 
    489491            _roar_flag 
    490492            return 0 
     
    507509        'metaload') 
    508510            _filedir 
     511            return 0 
     512            ;; 
     513        'role') 
     514            _roar_role 
    509515            return 0 
    510516            ;; 
     
    531537            return 0 
    532538            ;; 
    533         'flag') 
    534             return 0 
    535             ;; 
    536         'unflag') 
     539        'flag'|'unflag'|'toogleflag'|'protectflag') 
    537540            return 0 
    538541            ;; 
     
    553556            return 0 
    554557            ;; 
     558        'serveroinfo2') 
     559            _roar_dir 
     560            return 0 
     561            ;; 
     562        'clientinfo'|'streaminfo'|'role') 
     563            COMPREPLY=($(compgen -W "0 1 2 3 4 5 6 7 8 9" -- ${cur}))   
     564            return 0 
     565            ;; 
    555566        *) 
    556567        ;; 
     
    562573 
    563574complete -F _roarctl roarctl 
     575 
     576_roar_config() { 
     577    local cur prev opts libs 
     578    COMPREPLY=() 
     579    cur="${COMP_WORDS[COMP_CWORD]}" 
     580    prev="${COMP_WORDS[COMP_CWORD-1]}" 
     581    opts="--help --version --libs --cflags --output-pc --output-normal" 
     582    libs="roar roardsp roarmidi roarlight roareio roaresd esd roarartsc artsc roarpulse pulse roarpulse-simple pulse-simple roarsndio sndio roaryiff Y2" 
     583    liblibs=lib`echo "$libs" | sed 's/ / lib/g'` 
     584   COMPREPLY=($(compgen -W "${opts} ${libs} ${liblibs}" -- ${cur})) 
     585   return 0 
     586} 
     587 
     588complete -F _roar_config roar-config 
    564589 
    565590_roard()  
Note: See TracChangeset for help on using the changeset viewer.