summaryrefslogtreecommitdiffstats
path: root/shell-completion/bash/udevadm
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2025-01-17 22:12:31 +0100
committerGitHub <noreply@github.com>2025-01-17 22:12:31 +0100
commitf55a6fc1e35f5e5a1b51cbade9a7673f3d660f27 (patch)
tree97ab4ff12376437cf6978a5e9ffdebb8910b623c /shell-completion/bash/udevadm
parenttree-wide: switch various uses of mkdtemp() over to mkdtemp_malloc() (#36057) (diff)
parentudev-rules: add trace logs for GOTO and parent conditions (diff)
downloadsystemd-f55a6fc1e35f5e5a1b51cbade9a7673f3d660f27.tar.xz
systemd-f55a6fc1e35f5e5a1b51cbade9a7673f3d660f27.zip
udev: add --verbose option for 'udevadm test' and add more verbose logs (#36021)HEADmain
split out of #35968.
Diffstat (limited to 'shell-completion/bash/udevadm')
-rw-r--r--shell-completion/bash/udevadm13
1 files changed, 5 insertions, 8 deletions
diff --git a/shell-completion/bash/udevadm b/shell-completion/bash/udevadm
index e5626c9301..c4aea7039c 100644
--- a/shell-completion/bash/udevadm
+++ b/shell-completion/bash/udevadm
@@ -69,7 +69,8 @@ _udevadm() {
[CONTROL_ARG]='-l --log-priority -p --property -m --children-max -t --timeout'
[MONITOR_STANDALONE]='-k --kernel -u --udev -p --property'
[MONITOR_ARG]='-s --subsystem-match -t --tag-match'
- [TEST]='-a --action -N --resolve-names'
+ [TEST_STANDALONE]='-v --verbose'
+ [TEST_ARG]='-a --action -N --resolve-names'
[TEST_BUILTIN]='-a --action'
[VERIFY]='-N --resolve-names --root --no-summary --no-style'
[WAIT]='-t --timeout --initialized=no --removed --settle'
@@ -216,7 +217,7 @@ _udevadm() {
;;
'test')
- if __contains_word "$prev" ${OPTS[TEST]}; then
+ if __contains_word "$prev" ${OPTS[TEST_ARG]}; then
case $prev in
-a|--action)
comps=$( udevadm test --action help )
@@ -225,12 +226,8 @@ _udevadm() {
comps='early late never'
;;
esac
- COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
- return 0
- fi
-
- if [[ $cur = -* ]]; then
- comps="${OPTS[COMMON]} ${OPTS[TEST]}"
+ elif [[ $cur = -* ]]; then
+ comps="${OPTS[COMMON]} ${OPTS[TEST_ARG]} ${OPTS[TEST_STANDALONE]}"
else
comps=$( __get_all_devices )
local IFS=$'\n'