Module: EacCli::RunnerWith::Help
- Defined in:
- lib/eac_cli/runner_with/help.rb,
lib/eac_cli/runner_with/help/layout.rb,
lib/eac_cli/runner_with/help/builder.rb,
lib/eac_cli/runner_with/help/builder/alternative.rb
Defined Under Namespace
Modules: Layout Classes: Builder
Instance Method Summary collapse
- #help_join_sections(*sections) ⇒ String
- #help_list_section(title, items) ⇒ String
- #help_run ⇒ Object
- #help_text ⇒ String
- #show_help? ⇒ Boolean
Instance Method Details
#help_join_sections(*sections) ⇒ String
32 33 34 |
# File 'lib/eac_cli/runner_with/help.rb', line 32 def help_join_sections(*sections) ::EacCli::RunnerWith::Help::Layout.join_sections(*sections) end |
#help_list_section(title, items) ⇒ String
26 27 28 |
# File 'lib/eac_cli/runner_with/help.rb', line 26 def help_list_section(title, items) ::EacCli::RunnerWith::Help::Layout.list_section(title, items) end |
#help_run ⇒ Object
36 37 38 39 40 41 |
# File 'lib/eac_cli/runner_with/help.rb', line 36 def help_run return unless show_help? puts help_text raise ::EacCli::Runner::Exit end |
#help_text ⇒ String
44 45 46 |
# File 'lib/eac_cli/runner_with/help.rb', line 44 def help_text ::EacCli::RunnerWith::Help::Builder.new(self).to_s end |
#show_help? ⇒ Boolean
48 49 50 |
# File 'lib/eac_cli/runner_with/help.rb', line 48 def show_help? parsed.help? && !if_respond(:run_subcommand?, false) end |