Sha256: b4824eab436a01ceaf149d64fdeb51208a6102becba6ab8c900bd962eb72eaf1

Contents?: true

Size: 698 Bytes

Versions: 10

Compression:

Stored size: 698 Bytes

Contents

# frozen_string_literal: true
require "theme_check"

module Theme
  class Command
    class Check < ShopifyCLI::Command::SubCommand
      class Options < ShopifyCLI::Options
        def initialize(theme_check)
          super()
          @theme_check = theme_check
        end

        def parse(_options_block, args)
          @theme_check.parse(args)
        end
      end

      def initialize(*)
        super
        @theme_check = ThemeCheck::Cli.new
        self.options = Options.new(@theme_check)
      end

      def call(*)
        @theme_check.run
      end

      def self.help
        ShopifyCLI::Context.message("theme.check.help", ShopifyCLI::TOOL_NAME)
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shopify-cli-2.10.2 lib/project_types/theme/commands/check.rb
shopify-cli-2.10.1 lib/project_types/theme/commands/check.rb
shopify-cli-2.10.0 lib/project_types/theme/commands/check.rb
shopify-cli-2.9.0 lib/project_types/theme/commands/check.rb
shopify-cli-2.8.0 lib/project_types/theme/commands/check.rb
shopify-cli-2.7.4 lib/project_types/theme/commands/check.rb
shopify-cli-2.7.3 lib/project_types/theme/commands/check.rb
shopify-cli-2.7.2 lib/project_types/theme/commands/check.rb
shopify-cli-2.7.1 lib/project_types/theme/commands/check.rb
shopify-cli-2.7.0 lib/project_types/theme/commands/check.rb