{"version":3,"sources":["jsdelivr-header.js","/npm/sherry-plugin-core@2.0.0-alpha.9/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,YAAE,aAAgB,QAAQ,UAEhC,OAAO,QAAU,CAAC,EAAK,KACrB,EAAI,iBAAgB,IAClB,EACG,QAAQ,uBAAwB,mBAChC,QAAO,MAAO,EAAW,EAAS,QAAQ,MAAO,KAKhD,EAAK,eAAiB,EAAK,QAAQ,CACjC,YACA,YACG,IAPS,GAAW,EAAI,OAC1B,WAAW,GAAS,MACpB,OAAM,GAAS,YAAY,MAMtB,IAET,OAAO,sBAAuB,gFAC9B,OAAO,wBAAyB,0CAChC,OAAO,2BAA4B,yDACnC,OAAO,4BAA6B,wEACpC,OAAO,gBAAiB,2BACxB,OAAO,eAAgB,2BACvB,OAAO,YAAa,2BACpB,OAAO,UAAW,wBAAuB,GAC7C","file":"/npm/sherry-plugin-core@2.0.0-alpha.9/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/sherry-plugin-core@2.0.0-alpha.9/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const { handleError } = require('sherry')\n\nmodule.exports = (api, opts) => {\n  api.registerCommand(cli => {\n    cli\n      .command('<generator> [outDir]', 'Run a generator')\n      .action(async (generator, outDir = process.cwd(), flags) => {\n        const start = options => api.sherry\n          .setOptions(options).run()\n          .catch(error => handleError(error))\n\n        opts.process && await opts.process({\n          generator,\n          outDir,\n          ...flags\n        }, start)\n      })\n      .option('--npm-client <name>', 'Use a specific npm client (\\'yarn\\', \\'npm\\' or other custom clients, e.g. cnpm)')\n      .option('--registry <registry>', 'Use a custom registry for npm and yarn')\n      .option('--git-origin <gitOrigin>', 'Use a custom git origin for pulling generators in git')\n      .option('--git-protocol <protocol>', 'Protocol to pull git repo, can be http(s) or ssh (defaults to https)')\n      .option('-o, --out-dir', 'Custom output directory')\n      .option('-u, --update', 'Update cached generator')\n      .option('-y, --yes', 'Use the default options')\n      .option('--debug', 'Running in debug mode')\n  })\n}\n"]}