var m=(d,r,t)=>new Promise((a,n)=>{var o=e=>{try{s(t.next(e))}catch(c){n(c)}},p=e=>{try{s(t.throw(e))}catch(c){n(c)}},s=e=>e.done?a(e.value):Promise.resolve(e.value).then(o,p);s((t=t.apply(d,r)).next())});var i={custom:(d,r,t)=>m(void 0,null,function*(){let{stdout:a}=yield r({command:"cat",args:[`${t.environmentVariables.HOME}/.warprc`]}),n=a.matchAll(/^(\w+)/gm),o=[];for(let[p]of n)o.push({name:p,description:"Warp point",icon:"\u{1F518}",priority:76});return o})},g={name:"wd",description:"Warp to directories without using cd",args:[{name:"point",description:"Warp point to the specified directory",generators:i},{name:"path",description:"Appended path",isOptional:!0}],subcommands:[{name:"add",description:"Adds the current working directory to your warp points",args:{name:"point",description:"Name of the warp point to be created",isOptional:!0}},{name:"rm",description:"Removes the given warp point",args:{name:"point",description:"Name of the warp point to be removed",isOptional:!0,generators:i}},{name:"show",description:"Print path to given warp point",args:{name:"point",description:"Name of the warp point",isOptional:!0,generators:i}},{name:"list",description:"Print all stored warp points"},{name:"ls",description:"Show files from given warp point (ls)",args:{name:"point",description:"Name of the warp point",generators:i}},{name:"path",description:"Show the path to given warp point (pwd)",args:{name:"point",description:"Name of the warp point",generators:i}},{name:"clean",description:"Remove points warping to nonexistent directories (will prompt unless --force is used)"},{name:"help",description:"Shows help for wd"}],options:[{name:["-v","--version"],description:"Print version"},{name:["-d","--debug"],description:"Exit after execution with exit codes (for testing)"},{name:["-c","--config"],description:"Specify config file (default ~/.warprc)",args:{name:"file"}},{name:["-q","--quiet"],description:"Suppress all output"},{name:["-f","--force"],description:"Allows overwriting without warning (for add & clean)"}]},l=g;export{l as default};
