Sha256: 5ba72fea6fb67f7c8f263848618982da178486e9e32b6730c725a74cc142100f
Contents?: true
Size: 670 Bytes
Versions: 2
Compression:
Stored size: 670 Bytes
Contents
# frozen_string_literal: true require "shopify_cli" module Extension module Commands class ExtensionCommand < ShopifyCli::Command def project @project ||= ExtensionProject.current end def extension_type @extension_type ||= begin identifier = project.extension_type_identifier Models::LazySpecificationHandler.new(identifier) do unless Extension.specifications.valid?(identifier) @ctx.abort(@ctx.message("errors.unknown_type", project.extension_type_identifier)) end Extension.specifications[identifier] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-1.7.1 | lib/project_types/extension/commands/extension_command.rb |
shopify-cli-1.7.0 | lib/project_types/extension/commands/extension_command.rb |