Sha256: 7329600a3d9cd67a81197d416293157f5b155922e327f90c756a56ccc949cbb8

Contents?: true

Size: 374 Bytes

Versions: 8

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true

module PHP
  class Command
    class Open < ShopifyCLI::SubCommand
      def call(*)
        project = ShopifyCLI::Project.current
        @ctx.open_url!("#{project.env.host}/login?shop=#{project.env.shop}")
      end

      def self.help
        ShopifyCLI::Context.message("php.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/php/commands/open.rb
shopify-cli-2.6.5 lib/project_types/php/commands/open.rb
shopify-cli-2.6.4 lib/project_types/php/commands/open.rb
shopify-cli-2.6.3 lib/project_types/php/commands/open.rb
shopify-cli-2.6.2 lib/project_types/php/commands/open.rb
shopify-cli-2.6.1 lib/project_types/php/commands/open.rb
shopify-cli-2.6.0 lib/project_types/php/commands/open.rb
shopify-cli-2.5.0 lib/project_types/php/commands/open.rb