mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-18 15:55:30 +00:00
parent
f6dcbd796a
commit
ced94153d2
@ -7,7 +7,7 @@
|
||||
"email": "justin.s.dalrymple@gmail.com"
|
||||
},
|
||||
"bin": {
|
||||
"gitlab": "./dist/cli.js"
|
||||
"gitlab": "./dist/index.cli.js"
|
||||
},
|
||||
"browser": "dist/index.browser.js",
|
||||
"bugs": {
|
||||
|
||||
@ -19,7 +19,7 @@ program
|
||||
// Add all supported API's
|
||||
|
||||
/* eslint global-require: 0 import/no-unresolved: 0 */
|
||||
const map = require('../../dist/map.json') || {};
|
||||
const map = require('./map.json') || {};
|
||||
|
||||
Object.entries(map).forEach(([name, methods]: [string, { name: string; args: string[] }[]]) => {
|
||||
const baseArgs: string[] = methods[0].args;
|
||||
@ -78,7 +78,8 @@ Object.entries(map).forEach(([name, methods]: [string, { name: string; args: str
|
||||
const s = new core[name](initArgs);
|
||||
|
||||
// Execute function
|
||||
return s[m.name](...Object.values(coreArgs), optionalArgs);
|
||||
return s[m.name](...Object.values(coreArgs), optionalArgs)
|
||||
.then(console.log);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user