Module: Doing::WWIDInteractive
- Included in:
- WWID
- Defined in:
- lib/doing/wwid/interactive.rb
Overview
Interactive methods for WWID class
Instance Method Summary collapse
-
#act_on(items, opt) ⇒ Object
Perform actions on a set of entries.
-
#choose_section(include_all: false) ⇒ String
Generate a menu of sections and allow user selection.
-
#choose_section_tag ⇒ String
Generate a menu of sections and tags and allow user selection.
-
#choose_tag(section = 'All', items: nil, include_all: false) ⇒ String
Generate a menu of tags and allow user selection.
-
#choose_view ⇒ String
Generate a menu of views and allow user selection.
-
#interactive(opt) ⇒ Object
Display an interactive menu of entries.
-
#verify_duration(date, finish_date, title: nil) ⇒ Object
Interactively verify an item modification if elapsed time is greater than configured threshold.
Instance Method Details
#act_on(items, opt) ⇒ Object
Perform actions on a set of entries. If no valid action is included in the opt hash and the terminal is a TTY, a menu will be presented
#choose_section(include_all: false) ⇒ String
Generate a menu of sections and allow user selection
#choose_section_tag ⇒ String
Generate a menu of sections and tags and allow user selection
#choose_tag(section = 'All', items: nil, include_all: false) ⇒ String
Generate a menu of tags and allow user selection
#choose_view ⇒ String
Generate a menu of views and allow user selection
#interactive(opt) ⇒ Object
Display an interactive menu of entries
Options hash is shared with #filter_items and #act_on
#verify_duration(date, finish_date, title: nil) ⇒ Object
Interactively verify an item modification if elapsed time is greater than configured threshold