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 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
#render_divided_issues_by_status, #render_issue_detail, #render_issues, #summarise_issue
Methods included from CommonPresenter
#formatted_date, #insert_new_line, #pastel, #render, #screen_width, #username_with_email
Methods included from OptionSupportable
included, #resource_store, #suggest_options
Class Method Details
.banner(command, namespace = nil, subcommand = false) ⇒ Object
22 23 24 |
# File 'lib/terjira/base_cli.rb', line 22 def self.(command, namespace = nil, subcommand = false) "#{basename} #{subcommand_prefix} #{command.usage}" end |
.subcommand_prefix ⇒ Object
26 27 28 |
# File 'lib/terjira/base_cli.rb', line 26 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 |