Class: Gitloggl::Commands::ManageIntegration

Inherits:
Gitloggl::Command show all
Defined in:
lib/gitloggl/commands/manage_integration.rb

Instance Attribute Summary

Attributes inherited from Gitloggl::Command

#back, #options

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

#executeObject



6
7
8
9
10
11
12
13
14
15
# File 'lib/gitloggl/commands/manage_integration.rb', line 6

def execute
  puts render_table(table)

  prompt.select('Manage toggle -> gitlab integrations') do |menu|
    menu.enum ')'
    menu_back(menu)
    menu.choice 'Add', -> { add }
    menu.choice 'Remove', -> { remove }
  end
end