mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-06-17 01:40:51 -07:00
Migrate wrapper test to Cucumber.
This commit is contained in:
parent
479fa1e541
commit
56bc601b17
9 changed files with 144 additions and 94 deletions
|
@ -4,10 +4,9 @@ require 'open3'
|
|||
|
||||
module CompletionHelper
|
||||
def complete(cmd)
|
||||
completions = run_fish_command("complete -C\"sdk #{cmd}\"")
|
||||
completions = run_fish_command("complete -C\"sdk #{cmd}\"")[:stdout]
|
||||
|
||||
completions.split("\n") \
|
||||
.map { |line| line.split(/\s+/)[0].strip }
|
||||
completions.map { |line| line.split(/\s+/)[0].strip }
|
||||
# TODO: Why do we get duplicates in the Docker container?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue