@ycmd/creds
Version:
LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials
13 lines (10 loc) • 761 B
JavaScript
;
var chunkOGTRCXE5_js = require('./chunk-OGTRCXE5.js');
var chunkXBL2VHP3_js = require('./chunk-XBL2VHP3.js');
var chunkHILUMHCQ_js = require('./chunk-HILUMHCQ.js');
var chunkCSGQ5YH5_js = require('./chunk-CSGQ5YH5.js');
var err = require('@lsk4/err');
async function b(m,f={}){let{path:v,config:i}=await chunkHILUMHCQ_js.a(m),e=i.service?.serviceName;if(!e)throw new err.Err("!serviceName",{data:{configPath:v}});let r,t={...i.service,...f,config:i};if(e==="github")r=new chunkOGTRCXE5_js.a(t);else if(e==="gitlab")r=new chunkXBL2VHP3_js.a(t);else throw new err.Err("incorrect serviceName",{serviceName:e});return r}chunkCSGQ5YH5_js.a(b,"createService");
exports.a = b;
//# sourceMappingURL=out.js.map
//# sourceMappingURL=chunk-ROFM3MHH.js.map