1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-05 09:17:44 +03:00
systemd-stable/shell-completion/bash
Zbigniew Jędrzejewski-Szmek 4e9183059a shell-completion/zsh: silence error when machinectl is not installed
This fixes a few unrelated issues:
- when ENABLE_MACHINED is false, machinectl is not installed, but _sd_machines
  is still used in a few places that want to complete -M and such.
  Also, bash completion calls machinectl in various places.
  Make missing machinectl mean "no machines" in this case, so
  that no error is generated in the callers.
- machinectl list --full would print multiple lines of output per machine,
  breaking grep, issue introduced in e2268fa437.
  Using --max-addresses=1 would fix the issue, but let's use
  --max-addresses=0 because we now can.
- the lists used in various places were slightly different for no good reason.
- don't use a subshell if not necessary.

The code for bash still uses the same combined list of images and running
machines for various commands. The zsh code uses images for start/clone, and
running machines for the rest. Maybe something to fix in the future.

Replaces #25048.
2022-10-20 09:58:00 +02:00
..
bootctl bootctl: add --install-source=auto|image|host 2022-07-08 16:58:51 +01:00
busctl shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
coredumpctl Use https for gnu.org 2022-06-28 16:07:35 +02:00
homectl Implement --luks-sector-size for homed 2022-10-07 16:36:04 +02:00
hostnamectl Use https for gnu.org 2022-06-28 16:07:35 +02:00
journalctl shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
kernel-install Use https for gnu.org 2022-06-28 16:07:35 +02:00
localectl Use https for gnu.org 2022-06-28 16:07:35 +02:00
loginctl shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
machinectl shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
meson.build bash-completion: add systemd-cryptenroll support 2022-06-09 11:47:10 +02:00
networkctl Use https for gnu.org 2022-06-28 16:07:35 +02:00
oomctl Use https for gnu.org 2022-06-28 16:07:35 +02:00
portablectl shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
resolvectl Use https for gnu.org 2022-06-28 16:07:35 +02:00
systemctl.in shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
systemd-analyze shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
systemd-cat Use https for gnu.org 2022-06-28 16:07:35 +02:00
systemd-cgls shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
systemd-cgtop shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
systemd-cryptenroll bash-completion: add missing options to systemd-cryptenroll 2022-09-15 13:40:23 +01:00
systemd-delta Use https for gnu.org 2022-06-28 16:07:35 +02:00
systemd-detect-virt Use https for gnu.org 2022-06-28 16:07:35 +02:00
systemd-dissect bash-completion: add systemd-dissect support 2022-10-19 14:43:50 +02:00
systemd-id128 Use https for gnu.org 2022-06-28 16:07:35 +02:00
systemd-nspawn shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
systemd-path Use https for gnu.org 2022-06-28 16:07:35 +02:00
systemd-resolve Use https for gnu.org 2022-06-28 16:07:35 +02:00
systemd-run shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
systemd-sysext bash-completion: add systemd-sysext support 2022-08-22 15:41:38 +01:00
timedatectl shell-completion/zsh: silence error when machinectl is not installed 2022-10-20 09:58:00 +02:00
udevadm Use https for gnu.org 2022-06-28 16:07:35 +02:00