Sha256: 80482e99473a9aa70d26f83d8ae7fa23dff62310b3dd6973d26969bbc5b38a51

Contents?: true

Size: 550 Bytes

Versions: 4

Compression:

Stored size: 550 Bytes

Contents

# frozen_string_literal: true

# The CLI class provides the command-line interface for the UnUsedMethods gem.

require "thor"

module UnUsedMethods
  # This class is responsible for handling command-line arguments and executing
  # the appropriate tasks. It uses the Thor gem to define commands and options
  # that users can run from the command line.
  class CLI < Thor
    desc "find_unused", "Find unused methods in models, controllers and helpers"
    def find_unused
      UnUsedMethods::Analyzer.new.analyze
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
un_used_methods-0.1.3 lib/un_used_methods/cli.rb
un_used_methods-0.1.2 lib/un_used_methods/cli.rb
un_used_methods-0.1.1 lib/un_used_methods/cli.rb
un_used_methods-0.1.0 lib/un_used_methods/cli.rb