Sha256: f569d88418fcb242141bcc4d1e33f08b799f3b1b34d2c4f9785a210b74909c92

Contents?: true

Size: 518 Bytes

Versions: 39

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true
require "shopify_cli"

module ShopifyCLI
  class Command
    class SubCommand < Command
      class << self
        def call(args, command_name, parent_command)
          cmd = new(@ctx)
          args = cmd.options.parse(@_options, args || [])
          return call_help(parent_command, command_name) if cmd.options.help
          check_ruby_version
          check_node_version
          run_prerequisites

          cmd.call(args, command_name)
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
shopify-cli-2.19.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.18.1 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.18.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.17.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.16.1 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.16.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.15.6 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.15.5 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.15.4 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.15.3 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.15.2 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.15.1 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.15.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.14.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.13.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.12.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.11.2 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.11.1 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.11.0 lib/shopify_cli/command/sub_command.rb