var s=(a,o,n)=>new Promise((t,m)=>{var c=e=>{try{i(n.next(e))}catch(r){m(r)}},p=e=>{try{i(n.throw(e))}catch(r){m(r)}},i=e=>e.done?t(e.value):Promise.resolve(e.value).then(c,p);i((n=n.apply(a,o)).next())});var l={custom:(a,o,n)=>s(void 0,null,function*(){return Object.values(n.environmentVariables).map(t=>({name:t,description:"Environment variable",icon:"\u{1F30E}"}))})},v={name:"env",description:"Set environment and execute command, or print environment",options:[{name:"-0",description:"End each output line with NUL, not newline"},{name:["-i","-"],description:"Start with an empty environment"},{name:"-v",description:"Print verbose logs"},{name:"-u",description:"Remove variable from the environment",args:{name:"name",generators:l}},{name:"-P",description:"Search the given directories for the utility, rather than the PATH",args:{name:"altpath",template:"folders"}},{name:"-S",description:"Split the given string into separate arguments",args:{name:"string"}}],args:[{name:"name=value ...",description:"Set environment variables",isOptional:!0},{name:"utility",description:"Utility to run",isOptional:!0,isCommand:!0}]},u=v;export{u as default};
