Filechooser
file or directory chooser provides a command line version of a GUI file or directory chooser like Gtk::FileChooserDialog
Install
gem install filechooser
Use as a lib
require 'filechooser'
chosen_file=Filechooser::filechooser(STARTDIR)
chosen_folder=Filechooser::dirchooser(STARTDIR)
- STARTDIR is optional, default is ~.
- returns file or directory chosen by user
Use binaries
filechooser dirchooser
- print out file or directory chosen by user when entered in the Linux command line