Sha256: b7409a4924cf143cf31bbeecd67996f613fcc4744307bd796cb41d317532a139
Contents?: true
Size: 1.66 KB
Versions: 10
Compression:
Stored size: 1.66 KB
Contents
require "shopify_cli" module ShopifyCLI module Core module EntryPoint class << self def call(args, ctx = Context.new) # Only instruct the user to update the CLI, or warn them that they're # using CLI2 not CLI3, if they're running CLI2 directly. Otherwise the # warnings will be confusing and/or incorrect. unless Environment.run_as_subprocess? if ctx.development? && !ctx.testing? ctx.warn( ctx.message( "core.warning.development_version", File.join(ShopifyCLI::ROOT, "bin", ShopifyCLI::TOOL_NAME) ) ) # because `!ctx.new_version.nil?` will change the config by calling ::Config.set # it's important to keep the checks in this order so that we don't trigger it while testing # since changing the config will throw errors elsif !ctx.testing? && !ctx.new_version.nil? ctx.warn(ctx.message("core.warning.new_version", ShopifyCLI::VERSION, ctx.new_version)) end if ShopifyCLI::Core::CliVersion.using_3_0? ctx.warn(ctx.message("core.warning.in_3_0_directory")) end end ProjectType.load_all task_registry = ShopifyCLI::Tasks::Registry command, command_name, args = ShopifyCLI::Resolver.call(args) executor = ShopifyCLI::Core::Executor.new(ctx, task_registry, log_file: ShopifyCLI.log_file) ShopifyCLI::Core::Monorail.log(command_name, args) do executor.call(command, command_name, args) end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems