/[debian]/bti/trunk/bti-bashcompletion
ViewVC logotype

Annotation of /bti/trunk/bti-bashcompletion

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1623 - (hide annotations)
Thu Mar 12 15:55:34 2009 UTC (11 years, 11 months ago) by gregoa
File size: 568 byte(s)
New upstream release; from the RELEASE-NOTES:
"--action support, bti now can output data from the twitter
and identica servers".
1 gregoa 1530 _bti()
2     {
3     local cur prev
4     COMPREPLY=()
5     cur="${COMP_WORDS[COMP_CWORD]}"
6     prev="${COMP_WORDS[COMP_CWORD-1]}"
7     if [[ "${cur}" == -* ]] ; then
8 gregoa 1623 COMPREPLY=( $(compgen -W "-a -A -p -P -H -b -d -v -h
9     --account --action --password --proxy --host --bash \
10     --user --debug --version --help" -- ${cur}) )
11 gregoa 1530 fi
12    
13     if [[ "${prev}" == "--host" ]] ; then
14     COMPREPLY=( $(compgen -W "twitter identica" -- ${cur} ) )
15     fi
16    
17 gregoa 1623 if [[ "${prev}" == "--action" ]] ; then
18     COMPREPLY=( $(compgen -W "friends public update user replies" -- ${cur} ) )
19     fi
20    
21 gregoa 1530 return 0
22     }
23    
24     complete -F _bti bti

  ViewVC Help
Powered by ViewVC 1.1.26