From 4cf43bb227f2f74c10e0b4a0a467bfbc42c89a07 Mon Sep 17 00:00:00 2001 From: Mikko Johannes Koivunalho Date: Sat, 4 Oct 2025 23:10:17 +0200 Subject: [PATCH] feat(mech-dump): Add completion to mech-dump Part of WWW-Mechanize Perl distribution https://github.com/libwww-perl/WWW-Mechanize WWW::Mechanize, or Mech for short, is a Perl module for stateful programmatic web browsing, used for automating interaction with websites. GitHub Issue https://github.com/scop/bash-completion/issues/474 --- completions/mech-dump | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 completions/mech-dump diff --git a/completions/mech-dump b/completions/mech-dump new file mode 100644 index 00000000000..110607fe8ec --- /dev/null +++ b/completions/mech-dump @@ -0,0 +1,11 @@ +_comp_cmd_mech_dump() +{ + local cur + cur=${COMP_WORDS[COMP_CWORD]} + + # shellcheck disable=SC2207,SC2016 + COMPREPLY=($(compgen -W '$(mech-dump --completions)' -- "$cur")) +} && + complete -F _comp_cmd_mech_dump mech-dump + +# ex: filetype=sh