lib/inch/cli/command/base.rb in inch-0.2.3 vs lib/inch/cli/command/base.rb in inch-0.3.0.rc1

- old
+ new

@@ -36,11 +36,11 @@ # @note This was adapted from YARD # https://github.com/lsegal/yard/blob/master/lib/yard/cli/command.rb class Base include TraceHelper - attr_reader :source_parser # @return [SourceParser] + attr_reader :codebase # @return [Codebase::Proxy] # Helper method to run an instance with the given +args+ # # @see #run # @return [Command::Base] the instance that ran @@ -94,25 +94,9 @@ # Returns a description of the command's usage pattern # # @return [String] def usage "Usage: inch #{name} [options]" - end - - private - - # Returns the source parser against the given +paths+, while - # excluding all paths given in +excluded+ - # - # @param paths [Array<String>] - # @param excluded [Array<String>] - # @return [void] - def run_source_parser(paths, excluded) - debug "Parsing:\n" \ - " files: #{paths.inspect}\n" \ - " excluded: #{excluded.inspect}" - - @source_parser = SourceParser.run(paths, excluded) end end end end end