@seeka-labs/cli-apps 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ Expecting one of '${n.join("', '")}'`);return this._lifeCycleHooks[e]?this._life
20
20
  `),this.outputHelp({error:!0}));let n=t||{},i=n.exitCode||1,r=n.code||"commander.error";this._exit(i,r,e)}_parseOptionsEnv(){this.options.forEach(e=>{if(e.envVar&&e.envVar in g.env){let t=e.attributeName();(this.getOptionValue(t)===void 0||["default","config","env"].includes(this.getOptionValueSource(t)))&&(e.required||e.optional?this.emit(`optionEnv:${e.name()}`,g.env[e.envVar]):this.emit(`optionEnv:${e.name()}`))}})}_parseOptionsImplied(){let e=new qt(this.options),t=n=>this.getOptionValue(n)!==void 0&&!["default","implied"].includes(this.getOptionValueSource(n));this.options.filter(n=>n.implied!==void 0&&t(n.attributeName())&&e.valueFromOption(this.getOptionValue(n.attributeName()),n)).forEach(n=>{Object.keys(n.implied).filter(i=>!t(i)).forEach(i=>{this.setOptionValueWithSource(i,n.implied[i],"implied")})})}missingArgument(e){let t=`error: missing required argument '${e}'`;this.error(t,{code:"commander.missingArgument"})}optionMissingArgument(e){let t=`error: option '${e.flags}' argument missing`;this.error(t,{code:"commander.optionMissingArgument"})}missingMandatoryOptionValue(e){let t=`error: required option '${e.flags}' not specified`;this.error(t,{code:"commander.missingMandatoryOptionValue"})}_conflictingOption(e,t){let n=m=>{let a=m.attributeName(),o=this.getOptionValue(a),l=this.options.find(u=>u.negate&&a===u.attributeName()),c=this.options.find(u=>!u.negate&&a===u.attributeName());return l&&(l.presetArg===void 0&&o===!1||l.presetArg!==void 0&&o===l.presetArg)?l:c||m},i=m=>{let a=n(m),o=a.attributeName();return this.getOptionValueSource(o)==="env"?`environment variable '${a.envVar}'`:`option '${a.flags}'`},r=`error: ${i(e)} cannot be used with ${i(t)}`;this.error(r,{code:"commander.conflictingOption"})}unknownOption(e){if(this._allowUnknownOption)return;let t="";if(e.startsWith("--")&&this._showSuggestionAfterError){let i=[],r=this;do{let m=r.createHelp().visibleOptions(r).filter(a=>a.long).map(a=>a.long);i=i.concat(m),r=r.parent}while(r&&!r._enablePositionalOptions);t=he(e,i)}let n=`error: unknown option '${e}'${t}`;this.error(n,{code:"commander.unknownOption"})}_excessArguments(e){if(this._allowExcessArguments)return;let t=this.registeredArguments.length,n=t===1?"":"s",r=`error: too many arguments${this.parent?` for '${this.name()}'`:""}. Expected ${t} argument${n} but got ${e.length}.`;this.error(r,{code:"commander.excessArguments"})}unknownCommand(){let e=this.args[0],t="";if(this._showSuggestionAfterError){let i=[];this.createHelp().visibleCommands(this).forEach(r=>{i.push(r.name()),r.alias()&&i.push(r.alias())}),t=he(e,i)}let n=`error: unknown command '${e}'${t}`;this.error(n,{code:"commander.unknownCommand"})}version(e,t,n){if(e===void 0)return this._version;this._version=e,t=t||"-V, --version",n=n||"output the version number";let i=this.createOption(t,n);return this._versionOptionName=i.attributeName(),this._registerOption(i),this.on("option:"+i.name(),()=>{this._outputConfiguration.writeOut(`${e}
21
21
  `),this._exit(0,"commander.version",e)}),this}description(e,t){return e===void 0&&t===void 0?this._description:(this._description=e,t&&(this._argsDescription=t),this)}summary(e){return e===void 0?this._summary:(this._summary=e,this)}alias(e){if(e===void 0)return this._aliases[0];let t=this;if(this.commands.length!==0&&this.commands[this.commands.length-1]._executableHandler&&(t=this.commands[this.commands.length-1]),e===t._name)throw new Error("Command alias can't be the same as its name");let n=this.parent?._findCommand(e);if(n){let i=[n.name()].concat(n.aliases()).join("|");throw new Error(`cannot add alias '${e}' to command '${this.name()}' as already have command '${i}'`)}return t._aliases.push(e),this}aliases(e){return e===void 0?this._aliases:(e.forEach(t=>this.alias(t)),this)}usage(e){if(e===void 0){if(this._usage)return this._usage;let t=this.registeredArguments.map(n=>jt(n));return[].concat(this.options.length||this._helpOption!==null?"[options]":[],this.commands.length?"[command]":[],this.registeredArguments.length?t:[]).join(" ")}return this._usage=e,this}name(e){return e===void 0?this._name:(this._name=e,this)}nameFromFilename(e){return this._name=w.basename(e,w.extname(e)),this}executableDir(e){return e===void 0?this._executableDir:(this._executableDir=e,this)}helpInformation(e){let t=this.createHelp();return t.helpWidth===void 0&&(t.helpWidth=e&&e.error?this._outputConfiguration.getErrHelpWidth():this._outputConfiguration.getOutHelpWidth()),t.formatHelp(this,t)}_getHelpContext(e){e=e||{};let t={error:!!e.error},n;return t.error?n=i=>this._outputConfiguration.writeErr(i):n=i=>this._outputConfiguration.writeOut(i),t.write=e.write||n,t.command=this,t}outputHelp(e){let t;typeof e=="function"&&(t=e,e=void 0);let n=this._getHelpContext(e);this._getCommandAndAncestors().reverse().forEach(r=>r.emit("beforeAllHelp",n)),this.emit("beforeHelp",n);let i=this.helpInformation(n);if(t&&(i=t(i),typeof i!="string"&&!Buffer.isBuffer(i)))throw new Error("outputHelp callback must return a string or a Buffer");n.write(i),this._getHelpOption()?.long&&this.emit(this._getHelpOption().long),this.emit("afterHelp",n),this._getCommandAndAncestors().forEach(r=>r.emit("afterAllHelp",n))}helpOption(e,t){return typeof e=="boolean"?(e?this._helpOption=this._helpOption??void 0:this._helpOption=null,this):(e=e??"-h, --help",t=t??"display help for command",this._helpOption=this.createOption(e,t),this)}_getHelpOption(){return this._helpOption===void 0&&this.helpOption(void 0,void 0),this._helpOption}addHelpOption(e){return this._helpOption=e,this}help(e){this.outputHelp(e);let t=g.exitCode||0;t===0&&e&&typeof e!="function"&&e.error&&(t=1),this._exit(t,"commander.help","(outputHelp)")}addHelpText(e,t){let n=["beforeAll","before","after","afterAll"];if(!n.includes(e))throw new Error(`Unexpected value for position to addHelpText.
22
22
  Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,r=>{let m;typeof t=="function"?m=t({error:r.error,command:r.command}):m=t,m&&r.write(`${m}
23
- `)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(i=>t.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function pe(s){return s.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",i="9229",r;return(r=e.match(/^(--inspect(-brk)?)$/))!==null?t=r[1]:(r=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=r[1],/^\d+$/.test(r[3])?i=r[3]:n=r[3]):(r=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=r[1],n=r[3],i=r[4]),t&&i!=="0"?`${t}=${n}:${parseInt(i)+1}`:e})}de.Command=J});var be=_(y=>{var{Argument:ge}=H(),{Command:K}=fe(),{CommanderError:Dt,InvalidArgumentError:_e}=k(),{Help:It}=M(),{Option:Oe}=U();y.program=new K;y.createCommand=s=>new K(s);y.createOption=(s,e)=>new Oe(s,e);y.createArgument=(s,e)=>new ge(s,e);y.Command=K;y.Option=Oe;y.Argument=ge;y.Help=It;y.CommanderError=Dt;y.InvalidArgumentError=_e;y.InvalidOptionArgumentError=_e});var xe=_((Dn,ve)=>{ve.exports=Ee;Ee.sync=Mt;var Ce=require("fs");function Ft(s,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&s.substr(-i.length).toLowerCase()===i)return!0}return!1}function Ae(s,e,t){return!s.isSymbolicLink()&&!s.isFile()?!1:Ft(e,t)}function Ee(s,e,t){Ce.stat(s,function(n,i){t(n,n?!1:Ae(i,s,e))})}function Mt(s,e){return Ae(Ce.statSync(s),s,e)}});var He=_((In,Ve)=>{Ve.exports=ke;ke.sync=Wt;var Se=require("fs");function ke(s,e,t){Se.stat(s,function(n,i){t(n,n?!1:$e(i,e))})}function Wt(s,e){return $e(Se.statSync(s),e)}function $e(s,e){return s.isFile()&&Lt(s,e)}function Lt(s,e){var t=s.mode,n=s.uid,i=s.gid,r=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),m=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),o=parseInt("010",8),l=parseInt("001",8),c=a|o,u=t&l||t&o&&i===m||t&a&&n===r||t&c&&r===0;return u}});var Pe=_((Mn,Ne)=>{var Fn=require("fs"),N;process.platform==="win32"||global.TESTING_WINDOWS?N=xe():N=He();Ne.exports=Y;Y.sync=Rt;function Y(s,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Y(s,e||{},function(r,m){r?i(r):n(m)})})}N(s,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),t(n,i)})}function Rt(s,e){try{return N.sync(s,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var Me=_((Wn,Fe)=>{var E=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",je=require("path"),Ut=E?";":":",Te=Pe(),qe=s=>Object.assign(new Error(`not found: ${s}`),{code:"ENOENT"}),De=(s,e)=>{let t=e.colon||Ut,n=s.match(/\//)||E&&s.match(/\\/)?[""]:[...E?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],i=E?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=E?i.split(t):[""];return E&&s.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:n,pathExt:r,pathExtExe:i}},Ie=(s,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:r}=De(s,e),m=[],a=l=>new Promise((c,u)=>{if(l===n.length)return e.all&&m.length?c(m):u(qe(s));let h=n[l],O=/^".*"$/.test(h)?h.slice(1,-1):h,p=je.join(O,s),b=!O&&/^\.[\\\/]/.test(s)?s.slice(0,2)+p:p;c(o(b,l,0))}),o=(l,c,u)=>new Promise((h,O)=>{if(u===i.length)return h(a(c+1));let p=i[u];Te(l+p,{pathExt:r},(b,S)=>{if(!b&&S)if(e.all)m.push(l+p);else return h(l+p);return h(o(l,c,u+1))})});return t?a(0).then(l=>t(null,l),t):a(0)},Gt=(s,e)=>{e=e||{};let{pathEnv:t,pathExt:n,pathExtExe:i}=De(s,e),r=[];for(let m=0;m<t.length;m++){let a=t[m],o=/^".*"$/.test(a)?a.slice(1,-1):a,l=je.join(o,s),c=!o&&/^\.[\\\/]/.test(s)?s.slice(0,2)+l:l;for(let u=0;u<n.length;u++){let h=c+n[u];try{if(Te.sync(h,{pathExt:i}))if(e.all)r.push(h);else return h}catch{}}}if(e.all&&r.length)return r;if(e.nothrow)return null;throw qe(s)};Fe.exports=Ie;Ie.sync=Gt});var Le=_((Ln,X)=>{"use strict";var We=(s={})=>{let e=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};X.exports=We;X.exports.default=We});var Be=_((Rn,Ge)=>{"use strict";var Re=require("path"),Bt=Me(),zt=Le();function Ue(s,e){let t=s.options.env||process.env,n=process.cwd(),i=s.options.cwd!=null,r=i&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(s.options.cwd)}catch{}let m;try{m=Bt.sync(s.command,{path:t[zt({env:t})],pathExt:e?Re.delimiter:void 0})}catch{}finally{r&&process.chdir(n)}return m&&(m=Re.resolve(i?s.options.cwd:"",m)),m}function Jt(s){return Ue(s)||Ue(s,!0)}Ge.exports=Jt});var ze=_((Un,Q)=>{"use strict";var Z=/([()\][%!^"`<>&|;, *?])/g;function Kt(s){return s=s.replace(Z,"^$1"),s}function Yt(s,e){return s=`${s}`,s=s.replace(/(\\*)"/g,'$1$1\\"'),s=s.replace(/(\\*)$/,"$1$1"),s=`"${s}"`,s=s.replace(Z,"^$1"),e&&(s=s.replace(Z,"^$1")),s}Q.exports.command=Kt;Q.exports.argument=Yt});var Ke=_((Gn,Je)=>{"use strict";Je.exports=/^#!(.*)/});var Xe=_((Bn,Ye)=>{"use strict";var Xt=Ke();Ye.exports=(s="")=>{let e=s.match(Xt);if(!e)return null;let[t,n]=e[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Qe=_((zn,Ze)=>{"use strict";var ee=require("fs"),Zt=Xe();function Qt(s){let t=Buffer.alloc(150),n;try{n=ee.openSync(s,"r"),ee.readSync(n,t,0,150,0),ee.closeSync(n)}catch{}return Zt(t.toString())}Ze.exports=Qt});var it=_((Jn,nt)=>{"use strict";var en=require("path"),et=Be(),tt=ze(),tn=Qe(),nn=process.platform==="win32",sn=/\.(?:com|exe)$/i,rn=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function mn(s){s.file=et(s);let e=s.file&&tn(s.file);return e?(s.args.unshift(s.file),s.command=e,et(s)):s.file}function on(s){if(!nn)return s;let e=mn(s),t=!sn.test(e);if(s.options.forceShell||t){let n=rn.test(e);s.command=en.normalize(s.command),s.command=tt.command(s.command),s.args=s.args.map(r=>tt.argument(r,n));let i=[s.command].concat(s.args).join(" ");s.args=["/d","/s","/c",`"${i}"`],s.command=process.env.comspec||"cmd.exe",s.options.windowsVerbatimArguments=!0}return s}function an(s,e,t){e&&!Array.isArray(e)&&(t=e,e=null),e=e?e.slice(0):[],t=Object.assign({},t);let n={command:s,args:e,options:t,file:void 0,original:{command:s,args:e}};return t.shell?n:on(n)}nt.exports=an});var mt=_((Kn,rt)=>{"use strict";var te=process.platform==="win32";function ne(s,e){return Object.assign(new Error(`${e} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${s.command}`,path:s.command,spawnargs:s.args})}function ln(s,e){if(!te)return;let t=s.emit;s.emit=function(n,i){if(n==="exit"){let r=st(i,e,"spawn");if(r)return t.call(s,"error",r)}return t.apply(s,arguments)}}function st(s,e){return te&&s===1&&!e.file?ne(e.original,"spawn"):null}function cn(s,e){return te&&s===1&&!e.file?ne(e.original,"spawnSync"):null}rt.exports={hookChildProcess:ln,verifyENOENT:st,verifyENOENTSync:cn,notFoundError:ne}});var lt=_((Yn,v)=>{"use strict";var ot=require("child_process"),ie=it(),se=mt();function at(s,e,t){let n=ie(s,e,t),i=ot.spawn(n.command,n.args,n.options);return se.hookChildProcess(i,n),i}function un(s,e,t){let n=ie(s,e,t),i=ot.spawnSync(n.command,n.args,n.options);return i.error=i.error||se.verifyENOENTSync(i.status,n),i}v.exports=at;v.exports.spawn=at;v.exports.sync=un;v.exports._parse=ie;v.exports._enoent=se});var ye=A(be(),1),{program:Sn,createCommand:kn,createArgument:$n,createOption:Vn,CommanderError:Hn,InvalidArgumentError:Nn,InvalidOptionArgumentError:Pn,Command:we,Argument:jn,Option:C,Help:Tn}=ye.default;var j=A(lt()),d=A(require("fs")),gt=A(require("os")),f=A(require("path"));var P="1.0.2";var ut=()=>{$(),console.log(`
23
+ `)}),this}_outputHelpIfRequested(e){let t=this._getHelpOption();t&&e.find(i=>t.is(i))&&(this.outputHelp(),this._exit(0,"commander.helpDisplayed","(outputHelp)"))}};function pe(s){return s.map(e=>{if(!e.startsWith("--inspect"))return e;let t,n="127.0.0.1",i="9229",r;return(r=e.match(/^(--inspect(-brk)?)$/))!==null?t=r[1]:(r=e.match(/^(--inspect(-brk|-port)?)=([^:]+)$/))!==null?(t=r[1],/^\d+$/.test(r[3])?i=r[3]:n=r[3]):(r=e.match(/^(--inspect(-brk|-port)?)=([^:]+):(\d+)$/))!==null&&(t=r[1],n=r[3],i=r[4]),t&&i!=="0"?`${t}=${n}:${parseInt(i)+1}`:e})}de.Command=J});var be=_(y=>{var{Argument:ge}=H(),{Command:K}=fe(),{CommanderError:Dt,InvalidArgumentError:_e}=k(),{Help:It}=M(),{Option:Oe}=U();y.program=new K;y.createCommand=s=>new K(s);y.createOption=(s,e)=>new Oe(s,e);y.createArgument=(s,e)=>new ge(s,e);y.Command=K;y.Option=Oe;y.Argument=ge;y.Help=It;y.CommanderError=Dt;y.InvalidArgumentError=_e;y.InvalidOptionArgumentError=_e});var xe=_((Dn,ve)=>{ve.exports=Ee;Ee.sync=Mt;var Ce=require("fs");function Ft(s,e){var t=e.pathExt!==void 0?e.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&s.substr(-i.length).toLowerCase()===i)return!0}return!1}function Ae(s,e,t){return!s.isSymbolicLink()&&!s.isFile()?!1:Ft(e,t)}function Ee(s,e,t){Ce.stat(s,function(n,i){t(n,n?!1:Ae(i,s,e))})}function Mt(s,e){return Ae(Ce.statSync(s),s,e)}});var He=_((In,Ve)=>{Ve.exports=ke;ke.sync=Wt;var Se=require("fs");function ke(s,e,t){Se.stat(s,function(n,i){t(n,n?!1:$e(i,e))})}function Wt(s,e){return $e(Se.statSync(s),e)}function $e(s,e){return s.isFile()&&Lt(s,e)}function Lt(s,e){var t=s.mode,n=s.uid,i=s.gid,r=e.uid!==void 0?e.uid:process.getuid&&process.getuid(),m=e.gid!==void 0?e.gid:process.getgid&&process.getgid(),a=parseInt("100",8),o=parseInt("010",8),l=parseInt("001",8),c=a|o,u=t&l||t&o&&i===m||t&a&&n===r||t&c&&r===0;return u}});var Pe=_((Mn,Ne)=>{var Fn=require("fs"),N;process.platform==="win32"||global.TESTING_WINDOWS?N=xe():N=He();Ne.exports=Y;Y.sync=Rt;function Y(s,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){Y(s,e||{},function(r,m){r?i(r):n(m)})})}N(s,e||{},function(n,i){n&&(n.code==="EACCES"||e&&e.ignoreErrors)&&(n=null,i=!1),t(n,i)})}function Rt(s,e){try{return N.sync(s,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var Me=_((Wn,Fe)=>{var E=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",je=require("path"),Ut=E?";":":",Te=Pe(),qe=s=>Object.assign(new Error(`not found: ${s}`),{code:"ENOENT"}),De=(s,e)=>{let t=e.colon||Ut,n=s.match(/\//)||E&&s.match(/\\/)?[""]:[...E?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],i=E?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=E?i.split(t):[""];return E&&s.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:n,pathExt:r,pathExtExe:i}},Ie=(s,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:n,pathExt:i,pathExtExe:r}=De(s,e),m=[],a=l=>new Promise((c,u)=>{if(l===n.length)return e.all&&m.length?c(m):u(qe(s));let h=n[l],O=/^".*"$/.test(h)?h.slice(1,-1):h,p=je.join(O,s),b=!O&&/^\.[\\\/]/.test(s)?s.slice(0,2)+p:p;c(o(b,l,0))}),o=(l,c,u)=>new Promise((h,O)=>{if(u===i.length)return h(a(c+1));let p=i[u];Te(l+p,{pathExt:r},(b,S)=>{if(!b&&S)if(e.all)m.push(l+p);else return h(l+p);return h(o(l,c,u+1))})});return t?a(0).then(l=>t(null,l),t):a(0)},Gt=(s,e)=>{e=e||{};let{pathEnv:t,pathExt:n,pathExtExe:i}=De(s,e),r=[];for(let m=0;m<t.length;m++){let a=t[m],o=/^".*"$/.test(a)?a.slice(1,-1):a,l=je.join(o,s),c=!o&&/^\.[\\\/]/.test(s)?s.slice(0,2)+l:l;for(let u=0;u<n.length;u++){let h=c+n[u];try{if(Te.sync(h,{pathExt:i}))if(e.all)r.push(h);else return h}catch{}}}if(e.all&&r.length)return r;if(e.nothrow)return null;throw qe(s)};Fe.exports=Ie;Ie.sync=Gt});var Le=_((Ln,X)=>{"use strict";var We=(s={})=>{let e=s.env||process.env;return(s.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};X.exports=We;X.exports.default=We});var Be=_((Rn,Ge)=>{"use strict";var Re=require("path"),Bt=Me(),zt=Le();function Ue(s,e){let t=s.options.env||process.env,n=process.cwd(),i=s.options.cwd!=null,r=i&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(s.options.cwd)}catch{}let m;try{m=Bt.sync(s.command,{path:t[zt({env:t})],pathExt:e?Re.delimiter:void 0})}catch{}finally{r&&process.chdir(n)}return m&&(m=Re.resolve(i?s.options.cwd:"",m)),m}function Jt(s){return Ue(s)||Ue(s,!0)}Ge.exports=Jt});var ze=_((Un,Q)=>{"use strict";var Z=/([()\][%!^"`<>&|;, *?])/g;function Kt(s){return s=s.replace(Z,"^$1"),s}function Yt(s,e){return s=`${s}`,s=s.replace(/(\\*)"/g,'$1$1\\"'),s=s.replace(/(\\*)$/,"$1$1"),s=`"${s}"`,s=s.replace(Z,"^$1"),e&&(s=s.replace(Z,"^$1")),s}Q.exports.command=Kt;Q.exports.argument=Yt});var Ke=_((Gn,Je)=>{"use strict";Je.exports=/^#!(.*)/});var Xe=_((Bn,Ye)=>{"use strict";var Xt=Ke();Ye.exports=(s="")=>{let e=s.match(Xt);if(!e)return null;let[t,n]=e[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Qe=_((zn,Ze)=>{"use strict";var ee=require("fs"),Zt=Xe();function Qt(s){let t=Buffer.alloc(150),n;try{n=ee.openSync(s,"r"),ee.readSync(n,t,0,150,0),ee.closeSync(n)}catch{}return Zt(t.toString())}Ze.exports=Qt});var it=_((Jn,nt)=>{"use strict";var en=require("path"),et=Be(),tt=ze(),tn=Qe(),nn=process.platform==="win32",sn=/\.(?:com|exe)$/i,rn=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function mn(s){s.file=et(s);let e=s.file&&tn(s.file);return e?(s.args.unshift(s.file),s.command=e,et(s)):s.file}function on(s){if(!nn)return s;let e=mn(s),t=!sn.test(e);if(s.options.forceShell||t){let n=rn.test(e);s.command=en.normalize(s.command),s.command=tt.command(s.command),s.args=s.args.map(r=>tt.argument(r,n));let i=[s.command].concat(s.args).join(" ");s.args=["/d","/s","/c",`"${i}"`],s.command=process.env.comspec||"cmd.exe",s.options.windowsVerbatimArguments=!0}return s}function an(s,e,t){e&&!Array.isArray(e)&&(t=e,e=null),e=e?e.slice(0):[],t=Object.assign({},t);let n={command:s,args:e,options:t,file:void 0,original:{command:s,args:e}};return t.shell?n:on(n)}nt.exports=an});var mt=_((Kn,rt)=>{"use strict";var te=process.platform==="win32";function ne(s,e){return Object.assign(new Error(`${e} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${s.command}`,path:s.command,spawnargs:s.args})}function ln(s,e){if(!te)return;let t=s.emit;s.emit=function(n,i){if(n==="exit"){let r=st(i,e,"spawn");if(r)return t.call(s,"error",r)}return t.apply(s,arguments)}}function st(s,e){return te&&s===1&&!e.file?ne(e.original,"spawn"):null}function cn(s,e){return te&&s===1&&!e.file?ne(e.original,"spawnSync"):null}rt.exports={hookChildProcess:ln,verifyENOENT:st,verifyENOENTSync:cn,notFoundError:ne}});var lt=_((Yn,v)=>{"use strict";var ot=require("child_process"),ie=it(),se=mt();function at(s,e,t){let n=ie(s,e,t),i=ot.spawn(n.command,n.args,n.options);return se.hookChildProcess(i,n),i}function un(s,e,t){let n=ie(s,e,t),i=ot.spawnSync(n.command,n.args,n.options);return i.error=i.error||se.verifyENOENTSync(i.status,n),i}v.exports=at;v.exports.spawn=at;v.exports.sync=un;v.exports._parse=ie;v.exports._enoent=se});var ye=A(be(),1),{program:Sn,createCommand:kn,createArgument:$n,createOption:Vn,CommanderError:Hn,InvalidArgumentError:Nn,InvalidOptionArgumentError:Pn,Command:we,Argument:jn,Option:C,Help:Tn}=ye.default;var j=A(lt()),d=A(require("fs")),gt=A(require("os")),f=A(require("path"));var P="1.0.3";var ut=()=>{$(),console.log(`
24
24
  \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@
25
25
  \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@
26
26
  \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;016m \x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@\x1B[38;5;m@
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seeka-labs/cli-apps",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Seeka - Apps CLI",
5
5
  "author": "SEEKA <platform@seeka.co>",
6
6
  "license": "MIT",