Commit graph

361 commits

Author SHA1 Message Date
Thomas Hindoe Paaboel Andersen 1a0fce458d systemctl: add is-failed
Adds is-failed to join is-active and is-enabled.

I grabbed this one from the todo list. Most of the functionality was
already there for is-active. I just needed to make check_one_unit take
the states to check for as an argument instead of the hardcoded
"active" and "reloading".

is-failed will return 1 if none of the units given are failed. This is
different from is-active which will return 3 if none of the units
given are active. It returns 3 with this comment:
/* According to LSB: "program is not running" */
As that does not make sense when looking for failed units I simply
chose 1 instead.
2013-01-04 00:33:25 +01:00
Daniel Wallace f897e86278 zsh: add hibernate and hybrid-sleep to zsh-completion 2012-12-19 20:45:52 +01:00
Dave Reisner 45db2956ba bash-completion: update list of verbs
Add suspend, hibernate, hybrid-sleep
2012-12-19 08:11:20 -05:00
Umut Tezduyar d9847b3246 systemctl: fix typos in help text 2012-12-03 16:05:01 +01:00
Daniel Wallace 10341c618e fix --full for journalctl zsh completion 2012-11-24 01:42:35 +01:00
Kay Sievers 66128b2b4d shell-completion: udev - add net_id 2012-11-20 18:08:48 +01:00
Zbigniew Jędrzejewski-Szmek e3657ecd7f journalctl: add option to forgo ellipsization
Sometimes it is better to see messages in full, and the existing
set of options didn't allow this easily. E.g. now

  journalctl -f --full

will behave like

  tail -f /var/log/messages

of yore.

Long option only for now, since small letters are becoming
scarce, and this doesn't feel like a capital-letter-option.
'-u' would be nice, and the above command would be spelled

  journalctl -fu
2012-11-17 15:32:04 +01:00
Zbigniew Jędrzejewski-Szmek 12514db7d0 shell-completion: add catalog options 2012-11-16 23:41:58 +01:00
Dave Reisner 253a87510b bash-completion: add 'gdb' verb for coredumpctl
This also fixes value completion for journal fields, as the completion
for the RHS of the '=' was missing when it was borrowed from journalctl.
2012-11-09 14:12:36 -05:00
Daniel Wallace 553b932366 add zsh completion for all the commands
Most of the completion for systemctl and loginctl provided by Foudil Brétel
2012-11-05 10:56:28 +01:00
Kay Sievers bd49c40537 bash-completion > shell-completion 2012-11-03 22:10:32 +01:00