Class: ShopifyCli::SubCommand
- Defined in:
- lib/shopify-cli/sub_command.rb
Direct Known Subclasses
Extension::Commands::Create, Node::Commands::Create, Node::Commands::Deploy::Heroku, Node::Commands::Generate::Billing, Node::Commands::Generate::Page, Node::Commands::Generate::Webhook, Rails::Commands::Create, Rails::Commands::Deploy::Heroku, Rails::Commands::Generate::Webhook, Script::Commands::Create, AdminAPI::PopulateResourceCommand, Commands::Config::Analytics, Commands::Config::Feature
Instance Attribute Summary
Attributes inherited from Command
Class Method Summary collapse
Methods inherited from Command
call_help, #initialize, options, prerequisite_task, run_prerequisites, subcommand, subcommand_registry
Methods included from Feature::Set
Constructor Details
This class inherits a constructor from ShopifyCli::Command
Class Method Details
.call(args, command_name, parent_command) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/shopify-cli/sub_command.rb', line 7 def call(args, command_name, parent_command) cmd = new(@ctx) args = cmd..parse(@_options, args[1..-1] || []) return call_help(parent_command, command_name) if cmd..help run_prerequisites cmd.call(args, command_name) end |