Module: PolyglotFlutter::Helper::Terminal
- Included in:
- Command::Login, Command::Projects, Command::Pull, Command::Setup, ErrorHandler
- Defined in:
- lib/flutter_polyglot_cli/helpers/terminal.rb
Instance Method Summary collapse
Instance Method Details
#prompt ⇒ Object
10 11 12 |
# File 'lib/flutter_polyglot_cli/helpers/terminal.rb', line 10 def prompt @prompt ||= TTY::Prompt.new(interrupt: :exit) end |
#success(message = 'Success!') ⇒ Object
6 7 8 |
# File 'lib/flutter_polyglot_cli/helpers/terminal.rb', line 6 def success( = 'Success!') prompt.ok() end |