Sha256: 574f65259450cb46794b203d7dbc273bd5e6b703134201b6104d79cfa1ca196e

Contents?: true

Size: 423 Bytes

Versions: 8

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true
require "shopify_cli"

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shopify-cli-2.6.6 lib/shopify_cli/sub_command.rb
shopify-cli-2.6.5 lib/shopify_cli/sub_command.rb
shopify-cli-2.6.4 lib/shopify_cli/sub_command.rb
shopify-cli-2.6.3 lib/shopify_cli/sub_command.rb
shopify-cli-2.6.2 lib/shopify_cli/sub_command.rb
shopify-cli-2.6.1 lib/shopify_cli/sub_command.rb
shopify-cli-2.6.0 lib/shopify_cli/sub_command.rb
shopify-cli-2.5.0 lib/shopify_cli/sub_command.rb