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.36.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.35.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.34.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.33.1 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.33.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.32.1 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.32.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.31.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.30.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.29.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.28.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.27.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.26.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.25.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.24.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.23.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.22.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.21.0 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.20.1 lib/shopify_cli/command/sub_command.rb
shopify-cli-2.20.0 lib/shopify_cli/command/sub_command.rb