Sha256: e7a6f83f10dfa9e4101619c27cdf52a4aa6c7e00db528502e680c4627c4288ba

Contents?: true

Size: 479 Bytes

Versions: 1

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

1 entries across 1 versions & 1 rubygems

Version Path
shopify-cli-2.5.0 lib/shopify_cli/core/executor.rb