Class: GitImproved::AppHelpBuilder

Inherits:
Benry::CmdApp::ApplicationHelpBuilder
  • Object
show all
Defined in:
lib/git-improved.rb

Instance Method Summary collapse

Instance Method Details

#build_help_message(*args, **kwargs) ⇒ Object



1599
1600
1601
1602
1603
1604
# File 'lib/git-improved.rb', line 1599

def build_help_message(*args, **kwargs)
  @_omit_actions_part = true
  return super
ensure
  @_omit_actions_part = false
end

#section_actions(*args, **kwargs) ⇒ Object



1606
1607
1608
1609
1610
1611
1612
1613
# File 'lib/git-improved.rb', line 1606

def section_actions(*args, **kwargs)
  if @_omit_actions_part
    text ="  (Too long to show. Run `#{@config.app_command} -l` to list all actions.)"
    return render_section(header(:HEADER_ACTIONS), text)
  else
    return super
  end
end