Sha256: 5d81f2221f2ad3978fc2d53a326b119cdf808218ae005fbf31ccf012f2ad008a

Contents?: true

Size: 690 Bytes

Versions: 18

Compression:

Stored size: 690 Bytes

Contents

# frozen_string_literal: true

require 'thor'
require 'solidus_dev_support/extension'
require 'spree/core/version'

module SolidusDevSupport
  class SolidusCommand < Thor
    namespace ''

    desc 'extension', 'Manage solidus extensions'
    subcommand 'extension', Extension

    desc 'e', 'Manage solidus extensions (shortcut for "extension")'
    subcommand 'e', Extension

    desc 'version', 'Displays solidus_dev_support version'
    def version
      puts "Solidus version #{Spree.solidus_gem_version}"
      puts "Solidus Dev Support version #{SolidusDevSupport::VERSION}"
    end
    map ['-v', '--version'] => :version

    def self.exit_on_failure?
      true
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
solidus_dev_support-2.10.0 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.9.0 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.8.0 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.7.0 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.6.0 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.5.6 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.5.5 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.5.4 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.5.3 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.5.2 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.5.1 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.5.0 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.4.3 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.4.2 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.4.1 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.4.0 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.3.0 lib/solidus_dev_support/solidus_command.rb
solidus_dev_support-2.2.0 lib/solidus_dev_support/solidus_command.rb