Changeset 5124:d5f2eee3d3b8 in roaraudio


Ignore:
Timestamp:
08/10/11 13:04:25 (13 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

done some updates to bash completion file, still need some more updates, see #174

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/bash/roaraudio

    r4145 r5124  
    6969 x11sock=$(xprop -root 2>/dev/null | grep '^ROAR_SERVER(STRING) = ' | sed 's/^[^"]*"//; s/"$//') 
    7070 
    71  words="$link $nodes $stdsocks $x11sock +slp +fork" 
     71 words="$link $nodes $stdsocks $x11sock +slp +fork +abstract" 
    7272 
    7373 compgen -A hostname $cur 
     
    107107    local cur 
    108108    cur="${COMP_WORDS[COMP_CWORD]}" 
    109     COMPREPLY=($(compgen -W "meta primary sync cleanmeta hwmixer pause mute mmap antiecho recsource passmixer virtual prethru immutable enhance" -- ${cur})) 
     109    COMPREPLY=($(compgen -W "meta primary sync cleanmeta hwmixer pause mute mmap antiecho recsource passmixer virtual prethru immutable enhance singlesink" -- ${cur})) 
    110110} 
    111111 
     
    119119    local cur 
    120120    cur="${COMP_WORDS[COMP_CWORD]}" 
    121     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" -- ${cur})) 
     121#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) 
     122    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})) 
    122123} 
    123124 
     
    559560{ 
    560561    local cur prev opts 
    561     local opts_misc opts_audio opts_stream opts_driver opts_output opts_source opts_cf opts_midi opts_rdtcs opts_server opts_plugins 
     562    local opts_misc opts_auth opts_plugins opts_audio opts_stream opts_rolestack opts_output opts_source opts_cf opts_midi opts_light opts_rdtcs opts_x11 opts_server 
    562563    COMPREPLY=() 
    563564    cur="${COMP_WORDS[COMP_CWORD]}" 
     
    567568    #  The basic options we'll complete. 
    568569    # 
    569     opts_misc="--daemon --verbose --terminate --start --restart --stop --shutdown --realtime --chroot --setgid --setuid --sysclocksync --location --pidfile" 
     570    opts_misc="--daemon --verbose --terminate --start --restart --stop --shutdown --realtime --memlock --chroot --setgid --setuid --sysclocksync --location --description --pidfile --log-syslog --script-postdown" 
     571    opts_auth="--guest-acclev --trust-acclev --trust-root --no-trust-root --authfile-gen --authfile-load --authfile-type --authfile-acclev --new-authfile" 
     572    opts_plugins="--plugin-load" 
    570573    opts_audio="--rate --bits --chans -R -B -C --aiprofile" 
    571574    opts_stream="--stream-flags" 
    572     opts_driver="--driver --device -d -D --list-driver" 
    573     opts_output="--odriver --odevice -o -O -oO -oP -oN" 
     575    opts_rolestack="--list-rolestack --rolestack-push" 
     576    opts_output="--odriver --odevice -o -O -oO -oP -oN --list-driver" 
    574577    opts_source="--source -s -S -sO -sP -sN --list-sources" 
     578    opts_mixer="-m --mixer -mO -mN -mP --list-mixers" 
    575579    opts_cf="--list-cf" 
    576580    opts_midi="--midi-no-console --midi-console-enable --midi-console --ssynth-enable --ssynth-disable" 
    577581    opts_light="--light-channels" 
    578582    opts_rdtcs="--rds-pi --rds-ps --rds-pty --rds-tp --rds-ct" 
    579     opts_server="--tcp --unix --decnet -t -u -n -4 -6 -64 --port -p --bind -b --sock --proto --proto-dir --proto-rate --proto-bits --proto-codec --proto-chans --list-proto --list-profiles --proto-profile --proto-aiprofile --new-sock --slp --x11 --jumbo-mtu -G -U --no-listen --client-fh --close-fh --standby --auto-standby" 
    580     opts_plugins="--plugin-load" 
    581  
    582     opts="$opts_misc $opts_audio $opts_stream $opts_driver $opts_output $opts_source $opts_cf $opts_midi $opts_light $opts_rdtcs $opts_server $opts_plugins --help" 
     583    opts_x11="--x11-display --display" 
     584    opts_server="--tcp --unix --decnet -t -u -n -4 -6 -64 --port -p --bind -b --sock --proto --proto-dir --proto-rate --proto-bits --proto-codec --proto-chans --list-proto --list-profiles --proto-profile --proto-aiprofile --list-aiprofiles --new-sock --slp --x11 --jumbo-mtu -G -U --no-listen --client-fh --close-fh --standby --auto-standby" 
     585 
     586    opts="$opts_misc $opts_auth $opts_plugins $opts_audio $opts_stream $opts_rolestack $opts_output $opts_source $opts_mixer $opts_cf $opts_midi $opts_light $opts_rdtcs $opts_x11 $opts_server --help" 
    583587 
    584588 
     
    596600            return 0 
    597601            ;; 
     602        '--script-postdown') 
     603            _filedir 
     604            return 0 
     605            ;; 
    598606        '--plugin-load') 
    599607            _filedir 
    600608            return 0 
    601609            ;; 
     610        '--authfile-gen'|'--authfile-load') 
     611            _filedir 
     612            return 0 
     613            ;; 
     614# MemLock: 
     615        '--memlock') 
     616            COMPREPLY=($(compgen -W "none low medium high nearlyall nearlyallsys allcur all default" -- ${cur}))   
     617            return 0 
     618            ;; 
     619# Acclev 
     620        '--guest-acclev'|'--trust-acclev'|'--authfile-acclev') 
     621            COMPREPLY=($(compgen -W "none idented conctl guest user pwruser all" -- ${cur}))   
     622            return 0 
     623            ;; 
     624        '--authfile-type') 
     625            COMPREPLY=($(compgen -W "roar esd pulse htpasswd xauth" -- ${cur}))   
     626            return 0 
     627            ;; 
    602628# String: 
    603         '--location') 
     629        '--location'|'--description') 
    604630            return 0 
    605631            ;; 
     
    629655            return 0 
    630656            ;; 
     657# R:A 
     658        '--rolestack-push') 
     659            return 0 
     660            ;; 
    631661# driver: 
    632         '--driver'|'-d') 
    633             words=$(roard --list-driver | tail -n +3 | sed 's/^ *//; s/ .*$//') 
    634             COMPREPLY=($(compgen -W "${words}" -- ${cur}))   
    635             return 0 
    636             ;; 
    637662        '--odriver'|'-o') 
    638663            words=$(roard --list-driver | tail -n +3 | sed 's/^ *//; s/ .*$//') 
     
    648673# Device: 
    649674# FIXME: add support for non file devices 
    650         '--device'|'-D') 
    651             _filedir 
    652             return 0 
    653             ;; 
    654675        '--odevice'|'-O') 
    655676            _filedir 
     
    682703            ;; 
    683704        '--rds-pty') 
     705            return 0 
     706            ;; 
     707# X11: 
     708        '--x11-display'|'--display') 
    684709            return 0 
    685710            ;; 
Note: See TracChangeset for help on using the changeset viewer.