Sha256: 52b3af394b937ab54fa80d9bc6d5ac9fa75fe24a18959235113af166d1925f59

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.6.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.5.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.4.1 lib/shopify-cli/sub_command.rb
shopify-cli-1.4.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.3.1 lib/shopify-cli/sub_command.rb
shopify-cli-1.3.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.2.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.1.2 lib/shopify-cli/sub_command.rb
shopify-cli-1.1.1 lib/shopify-cli/sub_command.rb
shopify-cli-1.1.0 lib/shopify-cli/sub_command.rb
shopify-cli-1.0.5 lib/shopify-cli/sub_command.rb