]> err.no Git - systemd/commit
systemctl-completion: always invoke with --no-legend
authorDave Reisner <d@falconindy.com>
Wed, 12 Oct 2011 00:56:53 +0000 (20:56 -0400)
committerMichal Schmidt <mschmidt@redhat.com>
Wed, 19 Oct 2011 06:14:13 +0000 (08:14 +0200)
commit74eeab044e506a39786f484b160d9f64d48ad243
treecafa291e9368950ad025a1f8769e1f04b89cf51a
parent5a8d081c58f7b83172ad5031a8fdac0c33072b2a
systemctl-completion: always invoke with --no-legend

In the case of completion for the 'restart' verb, passing the invalid
unit name (the colums header) causes completion to cease functioning
entirely, with the error:

  Failed to issue method call: Unit name UNIT is not valid.

This adds a small wrapper function for systemctl which can have common
options added to it.
src/systemctl-bash-completion.sh