Sha256: 9392f9adaac0fd81bac74bacd29778d84fedabd851740e6367be4fa2bd79e530

Contents?: true

Size: 419 Bytes

Versions: 8

Compression:

Stored size: 419 Bytes

Contents

require "shopify_cli"

module Node
  class Command
    class Open < ShopifyCLI::SubCommand
      prerequisite_task ensure_project_type: :node

      def call(*)
        project = ShopifyCLI::Project.current
        @ctx.open_url!("#{project.env.host}/auth?shop=#{project.env.shop}")
      end

      def self.help
        ShopifyCLI::Context.message("node.open.help", ShopifyCLI::TOOL_NAME)
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shopify-cli-2.6.6 lib/project_types/node/commands/open.rb
shopify-cli-2.6.5 lib/project_types/node/commands/open.rb
shopify-cli-2.6.4 lib/project_types/node/commands/open.rb
shopify-cli-2.6.3 lib/project_types/node/commands/open.rb
shopify-cli-2.6.2 lib/project_types/node/commands/open.rb
shopify-cli-2.6.1 lib/project_types/node/commands/open.rb
shopify-cli-2.6.0 lib/project_types/node/commands/open.rb
shopify-cli-2.5.0 lib/project_types/node/commands/open.rb