Sha256: 782f5512e9e094953f78b1a23b8b9dcc5f9cbdd0a807d7f22c10bcb93e859df7
Contents?: true
Size: 695 Bytes
Versions: 11
Compression:
Stored size: 695 Bytes
Contents
require "shopify_cli" module Node module Commands class Populate class Product < ShopifyCli::AdminAPI::PopulateResourceCommand @input_type = :ProductInput def defaults { title: ShopifyCli::Helpers::Haikunator.title, variants: [{ price: price }], } end def message(data) ret = data["productCreate"]["product"] id = ShopifyCli::API.gid_to_id(ret["id"]) @ctx.message( "node.populate.product.added", ret["title"], ShopifyCli::Project.current.env.shop, admin_url, id ) end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems