Class: Theme::Command::Check
- Inherits:
-
ShopifyCLI::Command::SubCommand
- Object
- CLI::Kit::BaseCommand
- ShopifyCLI::Command
- ShopifyCLI::Command::SubCommand
- Theme::Command::Check
- Defined in:
- lib/project_types/theme/commands/check.rb
Defined Under Namespace
Classes: Options
Instance Attribute Summary
Attributes inherited from ShopifyCLI::Command
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ Check
constructor
A new instance of Check.
Methods inherited from ShopifyCLI::Command::SubCommand
Methods inherited from ShopifyCLI::Command
call, call_help, check_node_version, check_ruby_version, check_version, options, prerequisite_task, recommend_default_node_range, recommend_default_ruby_range, recommend_node, recommend_ruby, run_prerequisites, subcommand, subcommand_registry
Methods included from ShopifyCLI::Feature::Set
Constructor Details
Class Method Details
.help ⇒ Object
33 34 35 |
# File 'lib/project_types/theme/commands/check.rb', line 33 def self.help ShopifyCLI::Context.("theme.check.help", ShopifyCLI::TOOL_NAME) end |
Instance Method Details
#call ⇒ Object
26 27 28 29 30 31 |
# File 'lib/project_types/theme/commands/check.rb', line 26 def call(*) @theme_check.run! rescue ThemeCheck::Cli::Abort, ThemeCheck::ThemeCheckError => e raise ShopifyCLI::Abort, ShopifyCLI::Context.("theme.check.error", e.) end |