Sha256: 393c7d89c20c905ae72c323b615dfcdef2c15857f170507a71150175015cdf2a
Contents?: true
Size: 561 Bytes
Versions: 19
Compression:
Stored size: 561 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 unless Models::Type.valid?(project.extension_type_identifier) @ctx.abort(@ctx.message('errors.unknown_type', project.extension_type_identifier)) end Models::Type.load_type(project.extension_type_identifier) end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems