Implement `ask' recipe keyword
This commit is contained in:
1 parent
70109615c8
commit
7e062e06a1
7 files changed
+114
-1
No files matched your search
@@ -32,6 +32,10 @@ module Producer
|
||||
@condition = Condition.evaluate(@env, &block) if block
|
||||
@condition
|
||||
end
|
||||
|
||||
def ask(question, choices, prompter: Prompter)
|
||||
prompter.new(env.input, env.output).prompt(question, choices)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user