eft + eftcmdr: dialog boxes w/ ruby, yaml and whiptail 2014-02-24 08:52:20


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.

hello apps commands output confirm


- Felix

Comments