Skip to content

Commit

Permalink
feat(wasmer,wasmer-headless): add 3rd party fallback completion loader
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Dec 25, 2024
1 parent 6239823 commit 5986022
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions completions/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,7 @@
/vgsplit
/vigr
/_virtctl
/_wasmer-headless
/_watchexec
/whatis
/wine-development
Expand Down
4 changes: 4 additions & 0 deletions completions/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,7 @@ cross_platform = 2to3 \
vmstat \
vncviewer \
vpnc \
_wasmer \
watch \
webmitm \
wget \
Expand Down Expand Up @@ -1013,6 +1014,7 @@ CLEANFILES = \
vgsplit \
vigr \
_virtctl \
_wasmer-headless \
_watchexec \
whatis \
wine-development \
Expand Down Expand Up @@ -1392,6 +1394,8 @@ endif
vigr
$(ss) vncviewer \
tightvncviewer xvnc4viewer
$(ss) _wasmer \
_wasmer-headless
$(ss) wine \
wine-development wine-stable \
wine64 wine64-development wine64-stable
Expand Down
8 changes: 8 additions & 0 deletions completions/_wasmer
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 3rd party completion loader for commands emitting -*- shell-script -*-
# their completion using "$cmd gen-completions bash".
#
# This serves as a fallback in case the completion is not installed otherwise.

eval -- "$("$1" gen-completions bash 2>/dev/null)"

# ex: filetype=sh
1 change: 1 addition & 0 deletions test/fallback/completions/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ EXTRA_DIST = \
umount.linux \
uvx \
vault \
wasmer \
write \
xm \
yq \
Expand Down
1 change: 1 addition & 0 deletions test/fallback/completions/wasmer

0 comments on commit 5986022

Please sign in to comment.