File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change 107
107
(is (= #{" --bar-flag" } (set (complete cmd-table [" foo" " --foo-flag" " bar" " --bar-opt" " bar-val" " " ]))))))
108
108
109
109
110
- (deftest parse-opts-completion-test
111
- (cli/parse-opts [" --babashka.cli/completion-snippet" " zsh" ] {:complete true })
112
- (cli/parse-opts [" --babashka.cli/complete" " zsh" " foo" ] {:complete true }))
113
-
114
110
(deftest dispatch-completion-test
115
111
(is (= (slurp (io/resource " resources/completion/completion.zsh" )) (with-out-str (cli/dispatch cmd-table [" --babashka.cli/completion-snippet" " zsh" ] {:completion {:command " myprogram" }}))))
116
112
(is (= (slurp (io/resource " resources/completion/completion.bash" )) (with-out-str (cli/dispatch cmd-table [" --babashka.cli/completion-snippet" " bash" ] {:completion {:command " myprogram" }}))))
You can’t perform that action at this time.
0 commit comments