Sha256: b34739ab6734188d2252e3c9693860fdd32b06a9db02ff9c6f19d830ba516f83
Contents?: true
Size: 598 Bytes
Versions: 57
Compression:
Stored size: 598 Bytes
Contents
require "shopify_cli" module ShopifyCLI 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("core.populate.product.added", ret["title"], @shop, admin_url, id) end end end end end
Version data entries
57 entries across 57 versions & 1 rubygems