Module: Thor::Interactive::Command::ClassMethods
- Defined in:
- lib/thor/interactive/command.rb
Instance Method Summary collapse
- #configure_interactive(**options) ⇒ Object
-
#interactive? ⇒ Boolean
Check if currently running in interactive mode.
- #interactive_options ⇒ Object
Instance Method Details
#configure_interactive(**options) ⇒ Object
49 50 51 |
# File 'lib/thor/interactive/command.rb', line 49 def configure_interactive(**) .merge!() end |
#interactive? ⇒ Boolean
Check if currently running in interactive mode
54 55 56 |
# File 'lib/thor/interactive/command.rb', line 54 def interactive? ENV['THOR_INTERACTIVE_SESSION'] == 'true' end |
#interactive_options ⇒ Object
45 46 47 |
# File 'lib/thor/interactive/command.rb', line 45 def @interactive_options ||= { allow_nested: false } end |