Sha256: b46df713f57976a0211c1df4ddc75d88e41cf0b68ede6e8be1c9e3bf10610d81

Contents?: true

Size: 734 Bytes

Versions: 8

Compression:

Stored size: 734 Bytes

Contents

# frozen_string_literal: true
require "theme_check"

module Theme
  class Command
    class Check < ShopifyCLI::Command::SubCommand
      recommend_default_ruby_range

      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

8 entries across 8 versions & 1 rubygems

Version Path
shopify-cli-2.15.2 lib/project_types/theme/commands/check.rb
shopify-cli-2.15.1 lib/project_types/theme/commands/check.rb
shopify-cli-2.15.0 lib/project_types/theme/commands/check.rb
shopify-cli-2.14.0 lib/project_types/theme/commands/check.rb
shopify-cli-2.13.0 lib/project_types/theme/commands/check.rb
shopify-cli-2.12.0 lib/project_types/theme/commands/check.rb
shopify-cli-2.11.2 lib/project_types/theme/commands/check.rb
shopify-cli-2.11.1 lib/project_types/theme/commands/check.rb