Class: Hashira::CLI::CommandLine

Inherits:
Object
  • Object
show all
Defined in:
lib/hashira/cli/command_line.rb

Constant Summary collapse

DEFAULT_BASELINE =
"hashira_baseline.json"
FORMATS =
%w[text json dot mermaid].freeze
CI_FLAGS =
{ "--update-baseline" => :update, "--ratchet" => :ratchet }.freeze

Instance Method Summary collapse

Constructor Details

#initialize(argv) ⇒ CommandLine

Returns a new instance of CommandLine.



10
11
12
# File 'lib/hashira/cli/command_line.rb', line 10

def initialize(argv)
  @arguments = Hashira::CLI::Arguments.new(argv)
end

Instance Method Details

#optionsObject



14
# File 'lib/hashira/cli/command_line.rb', line 14

def options = shortcuts || parsed