Sha256: 4dec6ec3462e7a91137dfe75836be876ae35c52a8124475d40f0fccc141e1cb5

Contents?: true

Size: 366 Bytes

Versions: 20

Compression:

Stored size: 366 Bytes

Contents

require 'shopify_cli'

module Node
  module Commands
    class Open < ShopifyCli::Command
      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

20 entries across 20 versions & 1 rubygems

Version Path
shopify-cli-1.6.0 lib/project_types/node/commands/open.rb
shopify-cli-1.5.0 lib/project_types/node/commands/open.rb
shopify-cli-1.4.1 lib/project_types/node/commands/open.rb
shopify-cli-1.4.0 lib/project_types/node/commands/open.rb
shopify-cli-1.3.1 lib/project_types/node/commands/open.rb
shopify-cli-1.3.0 lib/project_types/node/commands/open.rb
shopify-cli-1.2.0 lib/project_types/node/commands/open.rb
shopify-cli-1.1.2 lib/project_types/node/commands/open.rb
shopify-cli-1.1.1 lib/project_types/node/commands/open.rb
shopify-cli-1.1.0 lib/project_types/node/commands/open.rb
shopify-cli-1.0.5 lib/project_types/node/commands/open.rb
shopify-cli-1.0.4 lib/project_types/node/commands/open.rb
shopify-cli-1.0.3 lib/project_types/node/commands/open.rb
shopify-cli-1.0.2 lib/project_types/node/commands/open.rb
shopify-cli-1.0.1 lib/project_types/node/commands/open.rb
shopify-cli-1.0.0 lib/project_types/node/commands/open.rb
shopify-cli-0.9.3 lib/project_types/node/commands/open.rb
shopify-cli-0.9.2 lib/project_types/node/commands/open.rb
shopify-cli-0.9.1 lib/project_types/node/commands/open.rb
shopify-cli-0.9.0 lib/project_types/node/commands/open.rb