diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-28 21:18:08 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-09-29 13:32:25 +0200 |
commit | 6c1482b28d79285004f64a10d8f6c372a9f1f226 (patch) | |
tree | 6fdbc95e28eca302d67570ab644b6bac663d6426 /shell-completion | |
parent | 3c318caa6f06d6a598b55fc3a9ad831212be4fa5 (diff) | |
download | systemd-6c1482b28d79285004f64a10d8f6c372a9f1f226.tar.gz |
udev: teach udevadm --property=NAME and --value options
which allows limiting the properties listed by the `--query=property` option
(and optionally listing only the respective values).
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/udevadm | 4 | ||||
-rw-r--r-- | shell-completion/zsh/_udevadm | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/shell-completion/bash/udevadm b/shell-completion/bash/udevadm index 4210366808..08b4ab43a0 100644 --- a/shell-completion/bash/udevadm +++ b/shell-completion/bash/udevadm @@ -49,8 +49,8 @@ _udevadm() { [COMMON]='-h --help -V --version' [DEBUG]='-d --debug' [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' + -w --wait-for-initialization --value' + [INFO_ARG]='-q --query -p --path -n --name -P --export-prefix -d --device-id-of-file --property' [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 diff --git a/shell-completion/zsh/_udevadm b/shell-completion/zsh/_udevadm index 1179f81a8b..eac56c7048 100644 --- a/shell-completion/zsh/_udevadm +++ b/shell-completion/zsh/_udevadm @@ -13,7 +13,9 @@ _udevadm_info(){ '--export-prefix=[Add a prefix to the key name of exported values.]:prefix' \ '--device-id-of-file=[Print major/minor numbers of the underlying device, where the file lives on.]:files:_udevadm_mounts' \ '--export-db[Export the content of the udev database.]' \ - '--cleanup-db[Cleanup the udev database.]' + '--cleanup-db[Cleanup the udev database.]' \ + '--value[When showing properties, print only their values.]' \ + '--property=[Show only properties by this name.]' } (( $+functions[_udevadm_trigger] )) || |