Sha256: a2521406da25d5ac35962e84fda3c748d42491fcb0f463ad3b62f664fe07fcb2
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 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 } parser.on("--poll") { flags[:poll] = true } end def call(*) flags = options.flags.dup ShopifyCLI::Theme::DevServer.start(@ctx, ".", **flags) do |syncer| UI::SyncProgressBar.new(syncer).progress(:upload_theme!, delay_low_priority_files: true) end end def self.help ShopifyCLI::Context.message("theme.serve.help", ShopifyCLI::TOOL_NAME) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-2.6.5 | lib/project_types/theme/commands/serve.rb |
shopify-cli-2.6.4 | lib/project_types/theme/commands/serve.rb |