Class: Terjira::BaseCLI
- Inherits:
-
Thor
- Object
- Thor
- Terjira::BaseCLI
- Includes:
- BoardPresenter, CommonPresenter, IssuePresenter, OptionSupportable, ProjectPresenter, SprintPresenter
- Defined in:
- lib/terjira/base_cli.rb
Direct Known Subclasses
Constant Summary
Constants included from IssuePresenter
Constants included from OptionSupportable
OptionSupportable::OPTION_TO_SELECTOR
Class Method Summary collapse
Methods included from SprintPresenter
#colorize_sprint_state, #render_sprint_detail, #render_sprints_summary, #sort_sprint_by_state, #summarise_sprint
Methods included from BoardPresenter
Methods included from ProjectPresenter
#redner_project_detail, #render_components_and_versions, #render_projects_summary
Methods included from IssuePresenter
#comments_template, #issue_detail_template, #render_divided_issues_by_status, #render_issue_detail, #render_issues, #summarise_issue
Methods included from CommonPresenter
#dim_none, #formatted_date, #insert_new_line, #pastel, #render, #screen_width, #username
Methods included from OptionSupportable
included, #resource_store, #suggest_options, #suggest_related_value_options
Class Method Details
.banner(command, _namespace = nil, _subcommand = false) ⇒ Object
17 18 19 |
# File 'lib/terjira/base_cli.rb', line 17 def self.(command, _namespace = nil, _subcommand = false) "#{basename} #{subcommand_prefix} #{command.usage}" end |
.subcommand_prefix ⇒ Object
21 22 23 |
# File 'lib/terjira/base_cli.rb', line 21 def self.subcommand_prefix self.name.gsub(%r{.*::}, '').gsub("CLI", '').gsub(%r{^[A-Z]}) { |match| match[0].downcase }.gsub(%r{[A-Z]}) { |match| "-#{match[0].downcase}" } end |