Class: Gitloggl::Commands::GitlabCfg
- Inherits:
-
Gitloggl::Command
- Object
- Gitloggl::Command
- Gitloggl::Commands::GitlabCfg
- Defined in:
- lib/gitloggl/commands/gitlab_cfg.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, #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 |
# File 'lib/gitloggl/commands/gitlab_cfg.rb', line 6 def execute(*) render_config_table prompt.select('') do || .choice 'Back', back if back? .choice 'Add site', -> { add_site } end end |