Class: Gitloggl::Commands::Main
- Inherits:
-
Gitloggl::Command
- Object
- Gitloggl::Command
- Gitloggl::Commands::Main
- Defined in:
- lib/gitloggl/commands/main.rb
Instance Attribute Summary
Attributes inherited from Gitloggl::Command
Instance Method Summary collapse
Methods inherited from Gitloggl::Command
#back?, #capture_back, #command, #config, #cursor, #editor, #exec_exist?, #generator, #initialize, #menu_back, #pager, #pastel, #platform, #prompt, #render_table, #screen, #verbose?, #which
Constructor Details
This class inherits a constructor from Gitloggl::Command
Instance Method Details
#execute ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/gitloggl/commands/main.rb', line 6 def execute(*) action = prompt.select('') do || .enum ')' .choice 'SYNC', Sync .choice 'Manage Integrations', ManageIntegration .choice 'Check For Updates', Update end action.new() do |a| a.back = capture_back a.execute end end |