]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: udevadm: support --uuid option
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 4 Jun 2021 09:36:01 +0000 (18:36 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 4 Jun 2021 13:00:11 +0000 (15:00 +0200)
Follow-up for 730b9c1e1469dfd6d6850e9ea06da3cac469eba0.

shell-completion/bash/udevadm
shell-completion/zsh/_udevadm

index 33d998395e3a303945b4295de8a072097d554ea6..d2c325b86866ad4f3623b8ec97a9c753f1f827a5 100644 (file)
@@ -51,7 +51,7 @@ _udevadm() {
         [INFO_STANDALONE]='-r --root -a --attribute-walk -x --export -e --export-db -c --cleanup-db
                            -w --wait-for-initialization'
         [INFO_ARG]='-q --query -p --path -n --name -P --export-prefix -d --device-id-of-file'
-        [TRIGGER_STANDALONE]='-v --verbose -n --dry-run -q --quiet -w --settle --wait-daemon'
+        [TRIGGER_STANDALONE]='-v --verbose -n --dry-run -q --quiet -w --settle --wait-daemon --uuid'
         [TRIGGER_ARG]='-t --type -c --action -s --subsystem-match -S --subsystem-nomatch
                        -a --attr-match -A --attr-nomatch -p --property-match
                        -g --tag-match -y --sysname-match --name-match -b --parent-match'
index 5e989b4a1d63dcfe47bffe8966ac41a7f379b0f5..90800ccfc163af63cc9a94f32957aa0451c7c985 100644 (file)
@@ -31,7 +31,8 @@ _udevadm_trigger(){
         '--property-match=[Trigger events for devices with a matching property value.]' \
         '--tag-match=property[Trigger events for devices with a matching tag.]' \
         '--sysname-match=[Trigger events for devices with a matching sys device name.]' \
-        '--parent-match=[Trigger events for all children of a given device.]'
+        '--parent-match=[Trigger events for all children of a given device.]' \
+        '--uuid[Print synthetic uevent UUID.]'
 }
 
 (( $+functions[_udevadm_settle] )) ||