mirror of
https://github.com/systemd/systemd.git
synced 2025-03-30 10:50:15 +03:00
shell-completion: add factory_reset udev builtin command
This commit is contained in:
parent
6cfb5866fe
commit
6f2f4ceadf
@ -110,7 +110,7 @@ _udevadm() {
|
||||
)
|
||||
|
||||
local verbs=(info trigger settle control monitor test-builtin test verify cat wait lock)
|
||||
local builtins=(blkid btrfs hwdb input_id keyboard kmod net_driver net_id net_setup_link path_id uaccess usb_id)
|
||||
local builtins=(blkid btrfs factory_reset hwdb input_id keyboard kmod net_driver net_id net_setup_link path_id uaccess usb_id)
|
||||
|
||||
for ((i=0; i < COMP_CWORD; i++)); do
|
||||
if __contains_word "${COMP_WORDS[i]}" "${verbs[@]}"; then
|
||||
|
@ -103,7 +103,7 @@ _udevadm_test-builtin(){
|
||||
'(- *)'{-h,--help}'[Print help]' \
|
||||
'(- *)'{-V,--version}'[Print version of the program]' \
|
||||
'--action=[The action string.]:actions:(add change remove move online offline bind unbind)' \
|
||||
'*::builtins:(blkid btrfs hwdb input_id net_driver net_id net_setup_link kmod path_id uaccess usb_id)'
|
||||
'*::builtins:(blkid btrfs factory_reset hwdb input_id keyboard kmod net_driver net_id net_setup_link path_id uaccess usb_id)'
|
||||
elif (( CURRENT == 3 )); then
|
||||
_arguments \
|
||||
'--action=[The action string.]:actions:(add change remove move online offline bind unbind)' \
|
||||
|
Loading…
x
Reference in New Issue
Block a user