From 6a1969a1ff3ba1b124c3b14b64b442a014adae6b Mon Sep 17 00:00:00 2001 From: ysthakur <45539777+ysthakur@users.noreply.github.com> Date: Thu, 17 Aug 2023 16:01:00 -0400 Subject: [PATCH] test: Add _test1.bash --- tests/resources/expected/_test1.bash | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/resources/expected/_test1.bash diff --git a/tests/resources/expected/_test1.bash b/tests/resources/expected/_test1.bash new file mode 100644 index 0000000..f7c60b0 --- /dev/null +++ b/tests/resources/expected/_test1.bash @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +function _comp_cmd_test1 { + COMPREPLY=() + case $COMP_CWORD in + 1) COMPREPLY=($(compgen -W "-h --help -v --verbose --loud sub1" -- $2)) ;; + *) + case $3 in + sub1) COMPREPLY=($(compgen -W "--foobar" -- $2)) ;; + esac + ;; + esac +}