Sha256: e6f4d23d15d8f9e2f30f5241869b834d30447bbb525ce330bcc27da6d97d13d8

Contents?: true

Size: 479 Bytes

Versions: 11

Compression:

Stored size: 479 Bytes

Contents

require 'shopify_cli'

module ShopifyCli
  module Core
    class Executor < CLI::Kit::Executor
      def initialize(ctx, task_registry, *args, **kwargs)
        @ctx = ctx || ShopifyCli::Context.new
        @task_registry = task_registry || ShopifyCli::Tasks::TaskRegistry.new
        super(*args, **kwargs)
      end

      def call(command, command_name, args)
        command.task_registry = @task_registry
        command.ctx = @ctx
        super
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shopify-cli-1.6.0 lib/shopify-cli/core/executor.rb
shopify-cli-1.5.0 lib/shopify-cli/core/executor.rb
shopify-cli-1.4.1 lib/shopify-cli/core/executor.rb
shopify-cli-1.4.0 lib/shopify-cli/core/executor.rb
shopify-cli-1.3.1 lib/shopify-cli/core/executor.rb
shopify-cli-1.3.0 lib/shopify-cli/core/executor.rb
shopify-cli-1.2.0 lib/shopify-cli/core/executor.rb
shopify-cli-1.1.2 lib/shopify-cli/core/executor.rb
shopify-cli-1.1.1 lib/shopify-cli/core/executor.rb
shopify-cli-1.1.0 lib/shopify-cli/core/executor.rb
shopify-cli-1.0.5 lib/shopify-cli/core/executor.rb