{"version":3,"sources":["jsdelivr-header.js","/npm/github-graphql-cli@0.2.3/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;ACJA,MAAM,MAAQ,QAAQ,UAEhB,cACF,eACA,QAAQ,iBAGR,MAAM,sBACF,sBAAqB,mBACrB,qBAEJ,QAAQ,iBAEZ,WAGI,OAAO,wBAA0B,sBAAsB,CAAE,8BACzD,OAAO,qBAAuB,mBAAmB,CAAE,8BAEnD,MACK,OAAO,CACJ,8BAEH,WAAW,iBACX,OAAO,MAAO,CACX,MAAO,IACP,SAAU,kDAEb,OAAO,QAAS,CACb,MAAO,IACP,cAAc,EACd,SAAU,wBAEb,OAAO,OAAQ,CACZ,MAAO,IACP,cAAc,EACd,SAAU,uBAEb,OAAO,QAAS,CACb,MAAO,IACP,SAAU,0BAEb,OAAO,UAAW,CACf,MAAO,IACP,SAAU,YAEb,gBACA,OACA,IACR,EApCD","file":"/npm/github-graphql-cli@0.2.3/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/github-graphql-cli@0.2.3/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\n\nconst yargs = require('yargs');\n\nconst {\n    personalToken\n} = require('./src/config');\n\nconst {\n    help: {\n        fetchMutationCommands,\n        fetchQueryCommands\n    }\n} = require('./src/helpers');\n\n(async () => {\n    // Unfortunately we need to front-load all possible commands for help since\n    // yargs doesn't support async builder functions yet.\n    global.MUTATION_COMMANDS = await fetchMutationCommands({ personalToken });\n    global.QUERY_COMMANDS = await fetchQueryCommands({ personalToken });\n\n    yargs\n        .config({\n            personalToken\n        })\n        .commandDir('src/commands/')\n        .option('dry', {\n            alias: 'd',\n            describe: 'Prints out GraphQL command without running it'\n        })\n        .option('owner', {\n            alias: 'o',\n            demandOption: true,\n            describe: 'Owner of repository'\n        })\n        .option('repo', {\n            alias: 'r',\n            demandOption: true,\n            describe: 'Name of repository'\n        })\n        .option('types', {\n            alias: 't',\n            describe: 'Perform type checking'\n        })\n        .option('verbose', {\n            alias: 'v',\n            describe: 'Verbose'\n        })\n        .demandCommand()\n        .help()\n        .argv;\n})();\n"]}