2 # SPDX-License-Identifier: LGPL-2.1+
4 (( $+functions[_bootctl_command] )) || _bootctl_command()
8 "status:Show status of installed systemd-boot and EFI variables"
9 "install:Install systemd-boot to the ESP and EFI variables"
10 "update:Update systemd-boot in the ESP and EFI variables"
11 "remove:Remove systemd-boot from the ESP and EFI variables"
13 if (( CURRENT == 1 )); then
14 _describe -t commands 'bootctl command' _bootctl_cmds || compadd "$@"
16 local curcontext="$curcontext"
17 cmd="${${_bootctl_cmds[(r)$words[1]:*]%%:*}}"
18 if (( $+functions[_bootctl_$cmd] )); then
21 _message "no more options"
27 {-h,--help}'[Prints a short help text and exits.]' \
28 '--version[Prints a short version string and exits.]' \
29 '--path=[Path to the EFI System Partition (ESP)]:path:_directories' \
30 '--no-variables[Do not touch EFI variables]' \
31 '*::bootctl command:_bootctl_command'