{"version":3,"sources":["jsdelivr-header.js","/npm/@genuino-blockchain-technologies/hophop@0.0.2/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;OCLO,SAAU,cACR,YAAe,+BACf,OAAU,mBAEnB,MAAM,kBAAoB,CAAC,UAAW,MAEhC,IAAM,KACV,uJAYA,CACE,0BAIG,SAAW,IAAI,MAYtB,GAVK,kBAAkB,SAAS,WAC9B,QAAQ,MACN,oBAAoB,oCAAoC,kBACrD,KAAI,GAAK,IAAI,OACb,KAAK,SAGV,QAAQ,QAGM,YAAZ,QAAuB,CACzB,MAAM,EAAU,IAAI,MAAM,GAErB,IACH,QAAQ,MACN,2EAGF,QAAQ,QAGV,QAAQ,EACV,KAAuB,OAAZ,SACT","file":"/npm/@genuino-blockchain-technologies/hophop@0.0.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@genuino-blockchain-technologies/hophop@0.0.2/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","#!/usr/bin/env node\nimport meow from 'meow'\nimport { feature } from './commands/feature.js'\nimport { pr } from './commands/pr.js'\n\nconst availableCommands = ['feature', 'pr']\n\nconst cli = meow(\n  `\n  Usage\n    $ hophop <command>\n\n  Commands\n    - feature <YouTrack ID>\n    - pr\n\n  Examples\n    $ hophop feature MVP-42\n    $ hophop pr\n`,\n  {\n    importMeta: import.meta\n  }\n)\n\nconst [command] = cli.input\n\nif (!availableCommands.includes(command)) {\n  console.error(\n    `Unknown command \"${command}\". Available commands are ${availableCommands\n      .map(c => `\"${c}\"`)\n      .join(', ')}`\n  )\n\n  process.exit()\n}\n\nif (command === 'feature') {\n  const issueId = cli.input[1]\n\n  if (!issueId) {\n    console.error(\n      'Please provide an ID of the issue, for example \"genuino feature mvp-42\"'\n    )\n\n    process.exit()\n  }\n\n  feature(issueId)\n} else if (command === 'pr') {\n  pr()\n}\n"]}