/usr/share/bash-completion/completions/juju is in juju-2.0 2.0.2-0ubuntu0.16.04.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # "run"time juju completion by version
_juju_complete_ver() {
case "$(juju version)" in
2.0*)
# See /etc/bash_completion.d/juju-2.0
_juju_complete_2_0 "$@"
return $?
;;
1.*)
# See /etc/bash_completion.d/juju-core
_juju "$@"
return $?
;;
esac
}
# Hook _juju_complete_ver for 'juju' cmd
# If juju-1 is also installed, it'll override it's completion
# as this "juju-version" named file will be loaded after
# "juju-2.0" and "juju-core".
complete -F _juju juju-1
complete -F _juju_complete_ver juju
# vim: ai et sw=2 ts=2
|