about summary refs log tree commit diff
path: root/Completion/Unix/Command/_rrdtool
blob: 9d097bd77938aacd2e906f1249e19c285a236ce5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#compdef rrdtool

_arguments \
  ':rrdtool command:(create update updatev graph dump restore
                   last lastupdate first help info fetch tune
		   resize xport)' \
  '*::subcmd:->subcmd' && return 0

case "$state" in
    (subcmd)

  case "$words[1]" in
      (help)
      	_wanted -V 'subcommands' expl 'subcommand' compadd \
	create update updatev graph dump restore last lastupdate \
	first help info fetch tune resize xport
	;;
      (*)
    	_files
    	;;
  esac
  ;;
esac