Debian Codegraph @

shell-completion/zsh/_systemd-sysinstall

raw
1 #compdef systemd-sysinstall
2 # SPDX-License-Identifier: LGPL-2.1-or-later
3
4 (( $+functions[_systemd-sysinstall_devices] )) ||
5 _systemd-sysinstall_devices() {
6 local -a _devices
7 _devices=( ${(f)"$(systemd-repart --list-devices 2>/dev/null)"} )
8 _wanted devices expl 'block device' compadd -a _devices
9 }
10
11 _arguments \
12 '(- *)'{-h,--help}'[Show help text]' \
13 '(- *)--version[Show package version]' \
14 '--welcome=[Show welcome text]:boolean:(yes no)' \
15 '--chrome=[Show colored bars at top and bottom of the terminal]:boolean:(yes no)' \
16 '--erase=[Erase target disk before installation]:boolean:(yes no auto)' \
17 '--confirm=[Query for confirmation before installation]:boolean:(yes no)' \
18 '--summary=[Show summary before installation]:boolean:(yes no)' \
19 '--reboot=[Reboot system after installation]:boolean:(yes no)' \
20 '--variables=[Register installation in firmware variables]:boolean:(yes no auto)' \
21 '--mute-console=[Mute kernel/PID 1 console output during installation]:boolean:(yes no)' \
22 '--copy-locale=[Copy current locale to target system]:boolean:(yes no)' \
23 '--copy-keymap=[Copy current keymap to target system]:boolean:(yes no)' \
24 '--copy-timezone=[Copy current timezone to target system]:boolean:(yes no)' \
25 '--definitions=[Find partition definitions in directory]:directory:_directories' \
26 '--kernel=[Kernel image to install]:kernel image:_files' \
27 '--set-credential=[Install a credential with a literal value]: : _message "ID:VALUE"' \
28 '--load-credential=[Load credential from a file or AF_UNIX socket]: : _message "ID:PATH"' \
29 '*::block device:_systemd-sysinstall_devices'