Sha256: 805542594cbd74d1f970c3f9f05c69d8af25bceb681bbd2629153f3605ec244b

Contents?: true

Size: 396 Bytes

Versions: 9

Compression:

Stored size: 396 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
        cmd.call(args, command_name)
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
shopify-cli-1.0.4 lib/shopify-cli/sub_command.rb
shopify-cli-1.0.3 lib/shopify-cli/sub_command.rb
shopify-cli-1.0.2 lib/shopify-cli/sub_command.rb
shopify-cli-1.0.1 lib/shopify-cli/sub_command.rb
shopify-cli-1.0.0 lib/shopify-cli/sub_command.rb
shopify-cli-0.9.3 lib/shopify-cli/sub_command.rb
shopify-cli-0.9.2 lib/shopify-cli/sub_command.rb
shopify-cli-0.9.1 lib/shopify-cli/sub_command.rb
shopify-cli-0.9.0 lib/shopify-cli/sub_command.rb