Sha256: 1d93fe71fdc60c05fc8880a635c901b730e1279443c2861d063af60b43341fcd
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
# frozen_string_literal: true require "shopify-cli/theme/dev_server" module Theme class Command class Serve < ShopifyCli::SubCommand options do |parser, flags| parser.on("--port=PORT") { |port| flags[:port] = port.to_i } end def call(*) flags = options.flags.dup ShopifyCli::Theme::DevServer.start(@ctx, ".", **flags) end def self.help ShopifyCli::Context.message("theme.serve.help", ShopifyCli::TOOL_NAME) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-2.0.0 | lib/project_types/theme/commands/serve.rb |