Class: Node::Commands::Populate

Inherits:
ShopifyCli::Command show all
Defined in:
lib/project_types/node/commands/populate.rb,
lib/project_types/node/commands/populate/product.rb,
lib/project_types/node/commands/populate/customer.rb,
lib/project_types/node/commands/populate/draft_order.rb

Defined Under Namespace

Classes: Customer, DraftOrder, Product

Instance Attribute Summary

Attributes inherited from ShopifyCli::Command

#ctx, #options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ShopifyCli::Command

call, call_help, #initialize, options, prerequisite_task, run_prerequisites, subcommand, subcommand_registry

Methods included from ShopifyCli::Feature::Set

#hidden?, #hidden_feature

Constructor Details

This class inherits a constructor from ShopifyCli::Command

Class Method Details

.extended_helpObject



18
19
20
# File 'lib/project_types/node/commands/populate.rb', line 18

def self.extended_help
  ShopifyCli::Context.message('node.populate.extended_help', ShopifyCli::TOOL_NAME)
end

.helpObject



14
15
16
# File 'lib/project_types/node/commands/populate.rb', line 14

def self.help
  ShopifyCli::Context.message('node.populate.help', ShopifyCli::TOOL_NAME)
end

Instance Method Details

#call(_args, _name) ⇒ Object



10
11
12
# File 'lib/project_types/node/commands/populate.rb', line 10

def call(_args, _name)
  @ctx.puts(self.class.help)
end