I've created two ruby gems that provide DSLs for whiptail.
eft
Provides a ruby DSL:
Eft.ask('What is your name?') do |q|
q.on_ok { |name| puts "Hello, #{name}!" }
end
eftcmdr
Provides a yaml DSL:
ask: ask_name
text: What is your name?
then:
eval: eval_hello
code: |
puts "Hello, #{ctx[:ask_name]}!"
$ eftcmdr examples/hello.yml
And can, for example, be used to provide a menu over ssh
.
- Felix
→ Comments