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

Version Path
shopify-cli-1.5.0 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.4.1 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.4.0 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.3.1 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.3.0 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.2.0 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.1.2 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.1.1 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.1.0 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.0.5 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.0.4 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.0.3 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.0.2 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.0.1 lib/project_types/extension/commands/extension_command.rb
shopify-cli-1.0.0 lib/project_types/extension/commands/extension_command.rb
shopify-cli-0.9.3 lib/project_types/extension/commands/extension_command.rb
shopify-cli-0.9.2 lib/project_types/extension/commands/extension_command.rb
shopify-cli-0.9.1 lib/project_types/extension/commands/extension_command.rb
shopify-cli-0.9.0 lib/project_types/extension/commands/extension_command.rb