eft - ruby + whiptail
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
.yardopts
README.md
Rakefile
eft.gemspec
example.rb

README.md

File        : README.md
Maintainer  : Felix C. Stegerman <flx@obfusk.net>
Date        : 2014-02-20

Copyright   : Copyright (C) 2014  Felix C. Stegerman
Version     : v0.4.2

Gem Version

Description

eft - ruby + whiptail

Eft is a ruby dsl that wraps whiptail [1] to display dialog boxes; see example.rb for examples.

Eft.ask('What is your name?') do |q|
  q.on_ok { |name| puts "Hello, #{name}!" }
end

Specs & Docs

$ rake spec   # TODO
$ rake docs

TODO

  • specs! (how to automate tests of whiptail? - I don't know!)
  • --noitem?
  • choose between whiptail and dialog?
  • extend w/ dialog's other dialogs?
  • remove dependency on obfusk-util?

License

LGPLv3+ [2].

References

[1] Newt (and whiptail) --- http://en.wikipedia.org/wiki/Newt_(programming_library)

[2] GNU Lesser General Public License, version 3 --- http://www.gnu.org/licenses/lgpl-3.0.html