Sha256: eff3ed7f6115b4db76dd273ffcf6f41009b506caf40330341610788258290b99

Contents?: true

Size: 422 Bytes

Versions: 11

Compression:

Stored size: 422 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

11 entries across 11 versions & 1 rubygems

Version Path
shopify-cli-1.14.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.13.1 lib/shopify-cli/sub_command.rb
shopify-cli-1.13.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.12.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.11.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.10.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.9.1 lib/shopify-cli/sub_command.rb
shopify-cli-1.9.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.8.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.7.1 lib/shopify-cli/sub_command.rb
shopify-cli-1.7.0 lib/shopify-cli/sub_command.rb