coreos / torus

Torus Distributed Storage
https://coreos.com/blog/torus-distributed-storage-by-coreos.html
Apache License 2.0
1.78k stars 172 forks source link

Support generating bash completion shells #326

Closed nak3 closed 7 years ago

nak3 commented 7 years ago
nak3 commented 7 years ago

Usage example

$ export PATH="$GOPATH/src/github.com/coreos/torus/bin/:$PATH"

$ source <(./bin/torusctl completion)
$ source <(./bin/torusblk completion)
$ source <(./bin/torusd --completion)

$ torusctl <TAB> <TAB>
block       completion  config      init        list-peers  peer        ring        version     volume      wipe

$ torusctl --<TAB> <TAB>
--config=            --etcd=              --etcd-cert-file=    --profile=           --read-level=        --write-level=       
--debug              --etcd-ca-file=      --etcd-key-file=     --read-cache-size=   --write-cache-size=