From: Yu Watanabe Date: Thu, 20 Nov 2025 05:39:13 +0000 (+0900) Subject: meson: sort shell completions X-Git-Tag: v259-rc2~67^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c74dc8cf14c4d37d6d84b17dd95e96919fe4aa9a;p=thirdparty%2Fsystemd.git meson: sort shell completions --- diff --git a/shell-completion/bash/meson.build b/shell-completion/bash/meson.build index 1ab60c9b7b2..43b9c28cb32 100644 --- a/shell-completion/bash/meson.build +++ b/shell-completion/bash/meson.build @@ -17,46 +17,47 @@ custom_target( install : bashcompletiondir != 'no', install_dir : bashcompletiondir) -items = [['busctl', ''], - ['journalctl', ''], - ['systemd-analyze', ''], - ['systemd-cat', ''], - ['systemd-cgls', ''], - ['systemd-cgtop', ''], - ['systemd-creds', ''], - ['systemd-delta', ''], - ['systemd-detect-virt', ''], - ['systemd-id128', ''], - ['systemd-nspawn', 'ENABLE_NSPAWN'], - ['systemd-path', ''], - ['systemd-run', ''], - ['systemd-vpick', ''], - ['udevadm', ''], - ['bootctl', ''], - ['run0', ''], - ['varlinkctl', ''], - ['coredumpctl', 'ENABLE_COREDUMP'], - ['homectl', 'ENABLE_HOMED'], - ['hostnamectl', 'ENABLE_HOSTNAMED'], - ['importctl', 'ENABLE_IMPORTD'], - ['kernel-install', 'ENABLE_KERNEL_INSTALL'], - ['localectl', 'ENABLE_LOCALED'], - ['loginctl', 'ENABLE_LOGIND'], - ['machinectl', 'ENABLE_MACHINED'], - ['networkctl', 'ENABLE_NETWORKD'], - ['oomctl', 'ENABLE_OOMD'], - ['portablectl', 'ENABLE_PORTABLED'], - ['resolvectl', 'ENABLE_RESOLVE'], - ['systemd-cryptenroll', 'HAVE_LIBCRYPTSETUP'], - ['systemd-confext', 'ENABLE_SYSEXT'], - ['systemd-dissect', 'HAVE_BLKID'], - ['systemd-resolve', 'ENABLE_RESOLVE'], - ['systemd-sysext', 'ENABLE_SYSEXT'], - ['systemd-vmspawn', 'ENABLE_VMSPAWN'], - ['timedatectl', 'ENABLE_TIMEDATED'], - ['userdbctl', 'ENABLE_USERDB']] +foreach item : [ + ['bootctl', ''], + ['busctl', ''], + ['coredumpctl', 'ENABLE_COREDUMP'], + ['homectl', 'ENABLE_HOMED'], + ['hostnamectl', 'ENABLE_HOSTNAMED'], + ['importctl', 'ENABLE_IMPORTD'], + ['journalctl', ''], + ['kernel-install', 'ENABLE_KERNEL_INSTALL'], + ['localectl', 'ENABLE_LOCALED'], + ['loginctl', 'ENABLE_LOGIND'], + ['machinectl', 'ENABLE_MACHINED'], + ['networkctl', 'ENABLE_NETWORKD'], + ['oomctl', 'ENABLE_OOMD'], + ['portablectl', 'ENABLE_PORTABLED'], + ['resolvectl', 'ENABLE_RESOLVE'], + ['run0', ''], + ['systemd-analyze', ''], + ['systemd-cat', ''], + ['systemd-cgls', ''], + ['systemd-cgtop', ''], + ['systemd-confext', 'ENABLE_SYSEXT'], + ['systemd-creds', ''], + ['systemd-cryptenroll', 'HAVE_LIBCRYPTSETUP'], + ['systemd-delta', ''], + ['systemd-detect-virt', ''], + ['systemd-dissect', 'HAVE_BLKID'], + ['systemd-id128', ''], + ['systemd-nspawn', 'ENABLE_NSPAWN'], + ['systemd-path', ''], + ['systemd-resolve', 'ENABLE_RESOLVE'], + ['systemd-run', ''], + ['systemd-sysext', 'ENABLE_SYSEXT'], + ['systemd-vmspawn', 'ENABLE_VMSPAWN'], + ['systemd-vpick', ''], + ['timedatectl', 'ENABLE_TIMEDATED'], + ['udevadm', ''], + ['userdbctl', 'ENABLE_USERDB'], + ['varlinkctl', ''], +] -foreach item : items if bashcompletiondir != 'no' and (item[1] == '' or conf.get(item[1]) == 1) install_data(item[0], install_dir : bashcompletiondir) diff --git a/shell-completion/zsh/meson.build b/shell-completion/zsh/meson.build index 4de28388ce8..f2db67881be 100644 --- a/shell-completion/zsh/meson.build +++ b/shell-completion/zsh/meson.build @@ -12,37 +12,38 @@ custom_target( install : zshcompletiondir != 'no', install_dir : zshcompletiondir) -items = [['_busctl', ''], - ['_journalctl', ''], - ['_systemd-analyze', ''], - ['_systemd-delta', ''], - ['_systemd-nspawn', ''], - ['_systemd', ''], - ['_systemd-path', ''], - ['_systemd-run', ''], - ['_run0', ''], - ['_udevadm', ''], - ['_varlinkctl', ''], - ['_kernel-install', 'ENABLE_KERNEL_INSTALL'], - ['_sd_bus_address', ''], - ['_sd_hosts_or_user_at_host', ''], - ['_sd_outputmodes', ''], - ['_sd_unit_files', ''], - ['_sd_machines', ''], - ['_bootctl', ''], - ['_coredumpctl', 'ENABLE_COREDUMP'], - ['_hostnamectl', 'ENABLE_HOSTNAMED'], - ['_localectl', 'ENABLE_LOCALED'], - ['_loginctl', 'ENABLE_LOGIND'], - ['_machinectl', 'ENABLE_MACHINED'], - ['_networkctl', 'ENABLE_NETWORKD'], - ['_oomctl', 'ENABLE_OOMD'], - ['_systemd-inhibit', 'ENABLE_LOGIND'], - ['_resolvectl', 'ENABLE_RESOLVE'], - ['_systemd-tmpfiles', 'ENABLE_TMPFILES'], - ['_timedatectl', 'ENABLE_TIMEDATED']] +foreach item : [ + ['_bootctl', ''], + ['_busctl', ''], + ['_coredumpctl', 'ENABLE_COREDUMP'], + ['_hostnamectl', 'ENABLE_HOSTNAMED'], + ['_journalctl', ''], + ['_kernel-install', 'ENABLE_KERNEL_INSTALL'], + ['_localectl', 'ENABLE_LOCALED'], + ['_loginctl', 'ENABLE_LOGIND'], + ['_machinectl', 'ENABLE_MACHINED'], + ['_networkctl', 'ENABLE_NETWORKD'], + ['_oomctl', 'ENABLE_OOMD'], + ['_resolvectl', 'ENABLE_RESOLVE'], + ['_run0', ''], + ['_sd_bus_address', ''], + ['_sd_hosts_or_user_at_host', ''], + ['_sd_machines', ''], + ['_sd_outputmodes', ''], + ['_sd_unit_files', ''], + ['_systemd', ''], + ['_systemd-analyze', ''], + ['_systemd-delta', ''], + ['_systemd-inhibit', 'ENABLE_LOGIND'], + ['_systemd-nspawn', ''], + ['_systemd-path', ''], + ['_systemd-run', ''], + ['_systemd-tmpfiles', 'ENABLE_TMPFILES'], + ['_timedatectl', 'ENABLE_TIMEDATED'], + ['_udevadm', ''], + ['_varlinkctl', ''], +] -foreach item : items if zshcompletiondir != 'no' and (item[1] == '' or conf.get(item[1]) == 1) install_data(item[0], install_dir : zshcompletiondir)