Sha256: ed8e88195e79bc064e7567731635cc4e3cbadbdb5930b870c37e09a411330c63
Contents?: true
Size: 1.27 KB
Versions: 2
Compression:
Stored size: 1.27 KB
Contents
module ShopifyCLI module Commands class App class Create class Node < ShopifyCLI::Command::AppSubCommand unless ShopifyCLI::Environment.acceptance_test? prerequisite_task :ensure_authenticated end options do |parser, flags| parser.on("--name=NAME") { |t| flags[:name] = t } parser.on("--organization-id=ID") { |id| flags[:organization_id] = id } parser.on("--store-domain=MYSHOPIFYDOMAIN") { |url| flags[:store_domain] = url } parser.on("--type=APPTYPE") { |type| flags[:type] = type } parser.on("--verbose") { flags[:verbose] = true } end def call(*) Services::App::Create::NodeService.call( name: options.flags[:name], organization_id: options.flags[:organization_id], store_domain: options.flags[:store_domain], type: options.flags[:type], verbose: !options.flags[:verbose].nil?, context: @ctx ) end class << self def help ShopifyCLI::Context.message("core.app.create.node.help", ShopifyCLI::TOOL_NAME, ShopifyCLI::TOOL_NAME) end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shopify-cli-2.7.1 | lib/shopify_cli/commands/app/create/node.rb |
shopify-cli-2.7.0 | lib/shopify_cli/commands/app/create/node.rb |