chiark / gitweb /
shell-completion: propose templates for disable/[re]enable/[re]start
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 15 Oct 2014 01:10:02 +0000 (21:10 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 15 Oct 2014 01:20:05 +0000 (21:20 -0400)
commite9a19bd882ff8a2c8aef5c63b39525ea231e5fb9
tree3e9bd94c53402001487d412d0bf6380dc6775efe
parentf29c77bc0179b0fa57407dbe30b495be9f5ad2e8
shell-completion: propose templates for disable/[re]enable/[re]start

Templates can be [re]enabled, on their own if the have DefaultInstance set,
and with an instance suffix in all cases. Propose just the template name
ending in @, to underline the instance suffix may have to be appended.

Likewise for start/restart.

This means that sometimes superflous units that one will not really
want to operate on will be proposed, but this seems better than
proposing a very incomplete set of names.

https://bugs.freedesktop.org/show_bug.cgi?id=66912
shell-completion/bash/systemctl.in
shell-completion/zsh/_systemctl.in