lib/skunk/cli/application.rb in skunk-0.3.1 vs lib/skunk/cli/application.rb in skunk-0.3.2

- old
+ new

@@ -1,17 +1,22 @@ # frozen_string_literal: true +require "rubycritic/cli/options" +require "rubycritic/cli/application" + require "skunk" require "skunk/rubycritic/analysed_module" require "skunk/cli/options" require "skunk/cli/command_factory" -require "rubycritic/cli/application" - module Skunk module Cli # Knows how to execute command line commands class Application < RubyCritic::Cli::Application + def initialize(argv) + @options = Skunk::Cli::Options.new(argv) + end + def execute parsed_options = @options.parse.to_h reporter = Skunk::Cli::CommandFactory.create(parsed_options).execute print(reporter.status_message) reporter.status