Sha256: af1a5329101b7a36e95e2196e004bfd2d9bf9fda95d8eda359ccdce8cd83829b

Contents?: true

Size: 1.26 KB

Versions: 15

Compression:

Stored size: 1.26 KB

Contents

# frozen_string_literal: true

require 'thor'

module Dri
  module Commands
    class Rm < Thor
      namespace :rm

      desc 'profile', 'Command description...'
      method_option :help, aliases: '-h', type: :boolean,
                           desc: 'Display usage information'
      def profile(*)
        if options[:help]
          invoke :help, ['profile']
        else
          require_relative 'rm/profile'
          Dri::Commands::Rm::Profile.new(options).execute
        end
      end

      desc 'reports', 'Command description...'
      method_option :help, aliases: '-h', type: :boolean,
                           desc: 'Display usage information'
      def reports(*)
        if options[:help]
          invoke :help, ['reports']
        else
          require_relative 'rm/reports'
          Dri::Commands::Rm::Reports.new(options).execute
        end
      end

      desc 'emoji', 'Remove triage emoji from all failures'
      method_option :help, aliases: '-h', type: :boolean,
                           desc: 'Display usage information'
      def emoji(*)
        if options[:help]
          invoke :help, ['emoji']
        else
          require_relative 'rm/emoji'
          Dri::Commands::Rm::Emoji.new(options).execute
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dri-0.11.0 lib/dri/commands/rm.rb
dri-0.10.2 lib/dri/commands/rm.rb
dri-0.10.1 lib/dri/commands/rm.rb
dri-0.10.0 lib/dri/commands/rm.rb
dri-0.9.0 lib/dri/commands/rm.rb
dri-0.8.0 lib/dri/commands/rm.rb
dri-0.7.0 lib/dri/commands/rm.rb
dri-0.6.1 lib/dri/commands/rm.rb
dri-0.6.0 lib/dri/commands/rm.rb
dri-0.5.1 lib/dri/commands/rm.rb
dri-0.5.0 lib/dri/commands/rm.rb
dri-0.4.0 lib/dri/commands/rm.rb
dri-0.3.1 lib/dri/commands/rm.rb
dri-0.3.0 lib/dri/commands/rm.rb
dri-0.2.0 lib/dri/commands/rm.rb