Don't need the `self.` here to call this method, but there are other simplifications we can do. I would recommend:

```
(bash_completion/'juju-completion.bash').write <<-EOS.undent
  _juju()
  {
    local cur prev options files targets
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"
    actions=$(juju help commands 2>/dev/null | awk '{print $1}')
    COMPREPLY=( $( compgen -W "${actions}" -- ${cur} ) )
    return 0
  }
  complete -F _juju juju
EOS
```