Sha256: 0afb7d89a0dbb7a3fd5364f27fcac07c226afdd80d346e5d7376cadc094f13d4
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true 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 execute parsed_options = @options.parse.to_h reporter = Skunk::Cli::CommandFactory.create(parsed_options).execute print(reporter.status_message) reporter.status rescue OptionParser::InvalidOption => error warn "Error: #{error}" STATUS_ERROR end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
skunk-0.2.0 | lib/skunk/cli/application.rb |
skunk-0.1.0 | lib/skunk/cli/application.rb |