Skip to content

Commit 5986022

Browse files
committed
feat(wasmer,wasmer-headless): add 3rd party fallback completion loader
https://github.com/wasmerio/wasmer
1 parent 6239823 commit 5986022

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

completions/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@
408408
/vgsplit
409409
/vigr
410410
/_virtctl
411+
/_wasmer-headless
411412
/_watchexec
412413
/whatis
413414
/wine-development

completions/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ cross_platform = 2to3 \
473473
vmstat \
474474
vncviewer \
475475
vpnc \
476+
_wasmer \
476477
watch \
477478
webmitm \
478479
wget \
@@ -1013,6 +1014,7 @@ CLEANFILES = \
10131014
vgsplit \
10141015
vigr \
10151016
_virtctl \
1017+
_wasmer-headless \
10161018
_watchexec \
10171019
whatis \
10181020
wine-development \
@@ -1392,6 +1394,8 @@ endif
13921394
vigr
13931395
$(ss) vncviewer \
13941396
tightvncviewer xvnc4viewer
1397+
$(ss) _wasmer \
1398+
_wasmer-headless
13951399
$(ss) wine \
13961400
wine-development wine-stable \
13971401
wine64 wine64-development wine64-stable

completions/_wasmer

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# 3rd party completion loader for commands emitting -*- shell-script -*-
2+
# their completion using "$cmd gen-completions bash".
3+
#
4+
# This serves as a fallback in case the completion is not installed otherwise.
5+
6+
eval -- "$("$1" gen-completions bash 2>/dev/null)"
7+
8+
# ex: filetype=sh

test/fallback/completions/Makefile.am

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ EXTRA_DIST = \
6161
umount.linux \
6262
uvx \
6363
vault \
64+
wasmer \
6465
write \
6566
xm \
6667
yq \

test/fallback/completions/wasmer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../completions/_wasmer

0 commit comments

Comments
 (0)