UNPKG

@ycmd/run

Version:

LSK.js CLI Creds is the easiest way to manage GitHub / Gitlab secrets and credentials

11 lines (8 loc) 942 B
'use strict'; var err = require('@lsk4/err'); var utils = require('@ycmd/utils'); var helpers = require('@ycmd/helpers'); var a=Object.defineProperty;var s=(t,o)=>a(t,"name",{value:o,configurable:!0});var f=s(t=>{process;return async(e={})=>{let n={...await helpers.loadMainOptions(),...e};try{return await t(n)}catch(r){throw r}}},"wrapMain");var b=s(t=>{let o,e=process,i=!e.lskrun&&!e.lskrunDisableAutorun,n=!1;if(typeof t=="function")o=t;else if(typeof t=="object"&&typeof t.main=="function")o=t.main,n=t.meta?utils.isExecutedFile(t.meta):i;else throw new err.Err("!main","Can't find main function");if(n){i||utils.log.warn("[exec]","Already executed",e.lskrun);let c={isAutorun:n,params:t};e.lskrun=c;}let r=f(o),u={...t,isAutorun:n,isWrapped:!0,main:r};if(n){let c={isAutorun:n,isFirstExec:i};u.res=r(c);}return u},"createCommand"); exports.createCommand = b; //# sourceMappingURL=out.js.map //# sourceMappingURL=createCommand.js.map