powerlines 0.47.130 → 0.47.131

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 (50) hide show
  1. package/bin/bin.mjs +5 -5
  2. package/bin/{build-BOrKBwOU.mjs → build-DnJm-Kcd.mjs} +1 -1
  3. package/bin/build.mjs +1 -1
  4. package/bin/{changelog-BIewUxHU.mjs → changelog-DXvHgiml.mjs} +1 -1
  5. package/bin/changelog.mjs +1 -1
  6. package/bin/{clean-DLWZphBW.mjs → clean-CD8HPulv.mjs} +1 -1
  7. package/bin/clean.mjs +1 -1
  8. package/bin/completions-bash-config.mjs +3 -3
  9. package/bin/completions-bash-script.mjs +3 -3
  10. package/bin/completions-fish-config.mjs +3 -3
  11. package/bin/completions-fish-script.mjs +3 -3
  12. package/bin/completions-powershell-config.mjs +3 -3
  13. package/bin/completions-powershell-script.mjs +3 -3
  14. package/bin/completions-zsh-config.mjs +1 -1
  15. package/bin/completions-zsh-script.mjs +1 -1
  16. package/bin/{config-BPhth5IY.mjs → config-8RdAITPl.mjs} +1 -1
  17. package/bin/{config-xJKi9Wf3.mjs → config-B6RqUSww.mjs} +1 -1
  18. package/bin/{config-CO5KKxC_.mjs → config-C1NxK771.mjs} +1 -1
  19. package/bin/{config-tOpMiszf.mjs → config-DPz93Dvj.mjs} +1 -1
  20. package/bin/{create-D6RtqmWf.mjs → create-BTVUN4jn.mjs} +1 -1
  21. package/bin/create.mjs +1 -1
  22. package/bin/{deploy-7KFyv2gK.mjs → deploy-CCVTW8q3.mjs} +1 -1
  23. package/bin/deploy.mjs +1 -1
  24. package/bin/{docs-BYUT4EVd.mjs → docs-C9Gk9VC4.mjs} +1 -1
  25. package/bin/docs.mjs +1 -1
  26. package/bin/{gc-CMR2PoTk.mjs → gc-D4ax8aRR.mjs} +1 -1
  27. package/bin/gc.mjs +1 -1
  28. package/bin/help.mjs +2 -2
  29. package/bin/{lint-DRX5nXyr.mjs → lint-Brdq8Hv_.mjs} +1 -1
  30. package/bin/lint.mjs +2 -2
  31. package/bin/{prepare-CO8TSdQ2.mjs → prepare-5aAlCGlJ.mjs} +1 -1
  32. package/bin/prepare.mjs +1 -1
  33. package/bin/{prompts-BLU5Njeg.mjs → prompts-kPTN-eef.mjs} +1 -1
  34. package/bin/{script-CFsIg7x3.mjs → script-Co8vISfS.mjs} +1 -1
  35. package/bin/{script-O-B5wCwp.mjs → script-D250coHa.mjs} +1 -1
  36. package/bin/{script-u89xTYDL.mjs → script-fDBVFFoL.mjs} +1 -1
  37. package/bin/{script-DN8bTLuk.mjs → script-speXDP-r.mjs} +1 -1
  38. package/bin/{shared-Hlp0rdy1.mjs → shared-22Als5Ro.mjs} +1 -1
  39. package/bin/{shared-qHUwDLYt.mjs → shared-CmC0hiKS.mjs} +1 -1
  40. package/bin/{shared-COSavxt_.mjs → shared-D47pc0eC.mjs} +1 -1
  41. package/bin/{shared-D4Fx56Fb.mjs → shared-DjtOMWdz.mjs} +1 -1
  42. package/bin/{types-Bqaibqfc.mjs → types-wFvtZePY.mjs} +1 -1
  43. package/bin/types.mjs +2 -2
  44. package/bin/{update-DgBNLyO5.mjs → update-BGypfmJV.mjs} +1 -1
  45. package/bin/{update-B95Kf6xP.mjs → update-D19RQ4Xz.mjs} +1 -1
  46. package/bin/update.mjs +1 -1
  47. package/bin/{zsh-CovvQbkK.mjs → zsh-CnGtG_2r.mjs} +1 -1
  48. package/dist/package.cjs +1 -1
  49. package/dist/package.mjs +1 -1
  50. package/package.json +6 -6
package/bin/bin.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import{A as e,D as t,E as n,F as r,G as i,I as a,J as o,K as s,L as c,M as l,R as u,U as d,V as f,W as p,X as m,a as h,f as g,n as _,o as v,r as y,t as b,z as x}from"./prompts-BLU5Njeg.mjs";import{a as S,i as C,n as w,o as T,r as E,t as D}from"./zsh-CovvQbkK.mjs";async function O(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
3
+ import{A as e,D as t,E as n,F as r,G as i,I as a,J as o,K as s,L as c,M as l,R as u,U as d,V as f,W as p,X as m,a as h,f as g,n as _,o as v,r as y,t as b,z as x}from"./prompts-kPTN-eef.mjs";import{a as S,i as C,n as w,o as T,r as E,t as D}from"./zsh-CnGtG_2r.mjs";async function O(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
4
4
  `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),n(h(e.banner.description.primary(`The "framework framework" that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function k(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
5
5
  `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions`).length+2))/2),0))+h(e.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands for generating shell completion scripts for Powerlines.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function A(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
6
- `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions - Bash`).length+2))/2),0))+h(e.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions - Bash`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands to setup bash completions for the Powerlines command-line interface.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function j(e=i()){let t=``;if(e.length>4&&e[4]&&(t=e[4]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`config`,`script`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await A();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(4)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`config`,`script`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return C()}async function M(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
7
- `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions - Fish`).length+2))/2),0))+h(e.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions - Fish`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands to setup Fish completions for the Powerlines command-line interface.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function N(e=i()){let t=``;if(e.length>4&&e[4]&&(t=e[4]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`config`,`script`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await M();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(4)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`config`,`script`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function P(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
8
- `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions - PowerShell`).length+2))/2),0))+h(e.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions - PowerShell`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands to setup PowerShell completions for the Powerlines command-line interface.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function F(e=i()){let t=``;if(e.length>4&&e[4]&&(t=e[4]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`config`,`script`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await P();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(4)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`config`,`script`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function I(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
9
- `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions - Zsh`).length+2))/2),0))+h(e.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions - Zsh`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands to setup Zsh completions for the Powerlines command-line interface.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function L(e=i()){let t=``;if(e.length>4&&e[4]&&(t=e[4]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await I();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(4)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function R(e=i()){let t=``;if(e.length>3&&e[3]&&(t=e[3]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return j(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return F(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return L(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return N(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`bash`,`powershell`,`zsh`,`fish`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await k();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(3)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return j(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return F(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return L(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return N(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`bash`,`powershell`,`zsh`,`fish`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return S()}let z=!1;const B=[],V=[];async function H(e={}){try{if(z)return;z=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&g({message:`A fatal error occured while running the application - please contact the Powerlines support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{l(`The Powerlines application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of V)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of B)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){g(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Powerlines support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function U(){if(d([`version`,`v`])){console.log(`0.47.125`);return}let e=i(),t=``;if(e.length>2&&e[2]&&(t=e[2]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`)return(await import(`./deploy.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return R(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`types`,`prepare`,`lint`,`docs`,`deploy`,`deployment`,`gc`,`garbage-collection`,`create`,`clean`,`build`,`changelog`,`completions`,`update`,`upgrade`,`help`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await O();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`types`],label:`Generate Typescript Declarations`,description:`(powerlines types)`,icon:`🖹`},{value:[`prepare`],label:`Prepare Artifacts`,description:`(powerlines prepare)`,icon:`🖉`},{value:[`lint`],label:`Lint Source Code`,description:`(powerlines lint)`,icon:`🗹`},{value:[`docs`],label:`Generate Documentation`,description:`(powerlines docs)`,icon:`🕮`},{value:[`deploy`],label:`Deploy`,description:`(powerlines deploy)`,icon:`🛪`},{value:[`gc`],label:`Garbage Collection`,description:`(powerlines gc)`,icon:`🗶`},{value:[`create`],label:`Create Project`,description:`(powerlines create)`,icon:`⬚`},{value:[`clean`],label:`Clean`,description:`(powerlines clean)`,icon:`🗑`},{value:[`build`],label:`Build`,description:`(powerlines build)`,icon:`🏗`},{value:[`changelog`],label:`Changelog`,description:`(powerlines changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(powerlines update)`,icon:`🖒`},{value:[`help`],label:`Help`,description:`(powerlines help)`,icon:`🛈`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(2)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`)return(await import(`./deploy.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return R(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`types`,`prepare`,`lint`,`docs`,`deploy`,`deployment`,`gc`,`garbage-collection`,`create`,`clean`,`build`,`changelog`,`completions`,`update`,`upgrade`,`help`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await O(0),T()}(async()=>{let e=new Date;try{process.on(`exit`,()=>H({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>H({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&H({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>H({startDate:e,signal:15})),process.once(`SIGINT`,()=>H({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(l(`The application was terminated by the user`),H({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(l(`The application was terminated by the user`),H({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>H({startDate:e,exception:n||Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await m(async()=>{let e=await U();e?.error&&g(e.error)}),H({startDate:e})}catch(t){H({startDate:e,exception:t})}})();export{H as exit};
6
+ `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions - Bash`).length+2))/2),0))+h(e.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions - Bash`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands to setup bash completions for the Powerlines command-line interface.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function j(e=i()){let t=``;if(e.length>4&&e[4]&&(t=e[4]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await A();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(4)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return C()}async function M(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
7
+ `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions - Fish`).length+2))/2),0))+h(e.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions - Fish`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands to setup Fish completions for the Powerlines command-line interface.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function N(e=i()){let t=``;if(e.length>4&&e[4]&&(t=e[4]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await M();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(4)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return E()}async function P(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
8
+ `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions - PowerShell`).length+2))/2),0))+h(e.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions - PowerShell`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands to setup PowerShell completions for the Powerlines command-line interface.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function F(e=i()){let t=``;if(e.length>4&&e[4]&&(t=e[4]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await P();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(4)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return w()}async function I(i=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||x)return;o().set(`banner`,!0),r(``),r(v.banner.outline.primary(`┏`)+v.banner.outline.primary(`━`.repeat(6))+` `+e.banner.header.primary(`⬤`)+` `+v.banner.outline.primary(`━`)+` `+h(e.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-38,0)))+v.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];n(Math.max(...a.map(e=>t(e).length))>Math.max(c().columns+30,20)?`Powerlines`:`\n${a.join(`
9
+ `)}\n`,Math.max(c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+h(e.banner.title.primary(n))+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(`Completions - Zsh`).length+2))/2),0))+h(e.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((c().columns-(t(`Completions - Zsh`).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),n(h(e.banner.description.primary(`Commands to setup Zsh completions for the Powerlines command-line interface.`)),Math.max(60>c().columns/2?c().columns-6:c().columns-30,20)).forEach(n=>{r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((c().columns-(t(n).length+2))/2),0))+e.banner.description.primary(n)+` `.repeat(Math.max(Math.ceil((c().columns-(t(n).length+2))/2),0))+v.banner.outline.primary(`┃`),{consoleFn:console.log})}),r(v.banner.outline.primary(`┃`)+` `.repeat(Math.max(c().columns-2,0))+v.banner.outline.primary(`┃`),{consoleFn:console.log}),r(v.banner.outline.primary(`┗`)+v.banner.outline.primary(`━`.repeat(Math.max(c().columns-35,0)))+` `+h(e.banner.footer.primary(`https://stormsoftware.com`))+` `+v.banner.outline.primary(`━`.repeat(6))+v.banner.outline.primary(`┛`),{consoleFn:console.log}),r(``),u&&!p()&&await f(i)}async function L(e=i()){let t=``;if(e.length>4&&e[4]&&(t=e[4]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await I();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(4)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`script`,`config`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return D()}async function R(e=i()){let t=``;if(e.length>3&&e[3]&&(t=e[3]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return L(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return N(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return j(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return F(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`zsh`,`fish`,`bash`,`powershell`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await k();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(3)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return L(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return N(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return j(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return F(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`zsh`,`fish`,`bash`,`powershell`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return S()}let z=!1;const B=[],V=[];async function H(e={}){try{if(z)return;z=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&g({message:`A fatal error occured while running the application - please contact the Powerlines support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{l(`The Powerlines application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of V)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of B)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){g(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Powerlines support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function U(){if(d([`version`,`v`])){console.log(`0.47.125`);return}let e=i(),t=``;if(e.length>2&&e[2]&&(t=e[2]),!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`)return(await import(`./deploy.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return R(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`lint`,`gc`,`garbage-collection`,`docs`,`deploy`,`deployment`,`create`,`clean`,`build`,`types`,`prepare`,`changelog`,`completions`,`update`,`upgrade`,`help`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(u&&!p()){await O();let n=await _({message:`Which command would you like to execute?`,options:[{value:[`lint`],label:`Lint Source Code`,description:`(powerlines lint)`,icon:`🗹`},{value:[`gc`],label:`Garbage Collection`,description:`(powerlines gc)`,icon:`🗶`},{value:[`docs`],label:`Generate Documentation`,description:`(powerlines docs)`,icon:`🕮`},{value:[`deploy`],label:`Deploy`,description:`(powerlines deploy)`,icon:`🛪`},{value:[`create`],label:`Create Project`,description:`(powerlines create)`,icon:`⬚`},{value:[`clean`],label:`Clean`,description:`(powerlines clean)`,icon:`🗑`},{value:[`build`],label:`Build`,description:`(powerlines build)`,icon:`🏗`},{value:[`types`],label:`Generate Typescript Declarations`,description:`(powerlines types)`,icon:`🖹`},{value:[`prepare`],label:`Prepare Artifacts`,description:`(powerlines prepare)`,icon:`🖉`},{value:[`changelog`],label:`Changelog`,description:`(powerlines changelog)`,icon:`🗃`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(powerlines update)`,icon:`🖒`},{value:[`help`],label:`Help`,description:`(powerlines help)`,icon:`🛈`}]});if(b(n))return;let r={};for(let e of n.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await y({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(b(t))return;r[e]=t}n=n.map(e=>r[e]||e);let i=s();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...n,...e.slice(2)].filter(Boolean)),t=n[0],e=i.inputArgs,!t.startsWith(`-`)){if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`)return(await import(`./deploy.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return R(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(e);if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(e);if(t&&!t.startsWith(`-`)){let e=a(t,[`lint`,`gc`,`garbage-collection`,`docs`,`deploy`,`deployment`,`create`,`clean`,`build`,`types`,`prepare`,`changelog`,`completions`,`update`,`upgrade`,`help`]).slice(0,3);g(`Unknown command: "${t}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return await O(0),T()}(async()=>{let e=new Date;try{process.on(`exit`,()=>H({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>H({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&H({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>H({startDate:e,signal:15})),process.once(`SIGINT`,()=>H({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(l(`The application was terminated by the user`),H({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(l(`The application was terminated by the user`),H({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>H({startDate:e,exception:n||Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await m(async()=>{let e=await U();e?.error&&g(e.error)}),H({startDate:e})}catch(t){H({startDate:e,exception:t})}})();export{H as exit};
@@ -1 +1 @@
1
- import{A as e,F as t,a as n,k as r,x as i}from"./prompts-BLU5Njeg.mjs";function a(){t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`build`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`The root directory of the project to build.`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Build command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/build`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
1
+ import{A as e,F as t,a as n,k as r,x as i}from"./prompts-kPTN-eef.mjs";function a(){t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`build`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`The root directory of the project to build.`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Build command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/build`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
package/bin/build.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,R as c,U as l,V as u,W as d,Y as f,Z as p,a as m,et as h,o as g,q as _,z as v}from"./prompts-BLU5Njeg.mjs";import{t as y}from"./update-DgBNLyO5.mjs";import{t as b}from"./create-powerlines-DvusHjN3.mjs";import{t as x}from"./build-BOrKBwOU.mjs";async function S(e=500){if(o().get(`banner`)||l(`no-banner`)||l(`hide-banner`)||v)return;o().set(`banner`,!0),i(``),i(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+m(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,R as c,U as l,V as u,W as d,Y as f,Z as p,a as m,et as h,o as g,q as _,z as v}from"./prompts-kPTN-eef.mjs";import{t as y}from"./update-BGypfmJV.mjs";import{t as b}from"./create-powerlines-DvusHjN3.mjs";import{t as x}from"./build-DnJm-Kcd.mjs";async function S(e=500){if(o().get(`banner`)||l(`no-banner`)||l(`hide-banner`)||v)return;o().set(`banner`,!0),i(``),i(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+m(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+m(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Build`).length+2))/2),0))+m(t.banner.command.primary(`Build`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Build`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(m(t.banner.description.primary(`Builds the project for production deployment.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),i(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+m(t.banner.footer.primary(`https://stormsoftware.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),c&&!d()&&await u(e)}async function C(e){await(await b(e)).build(e)}async function w(n=a()){let r={..._()};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`)&&(/^--?(root)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.root=t.replace(/^--?(root)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):n.length>e+1&&(r.root=n[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return await S(),await y(),d()||(i(``),(h||e||p.LOG_LEVEL===`debug`)&&i(t.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),r.help?x():f(`build`,[`build`],[r],C)}export{w as handler};
@@ -1 +1 @@
1
- import{A as e,F as t,a as n,k as r,x as i,y as a}from"./prompts-BLU5Njeg.mjs";function o(){t(`${n(e.heading.secondary(`Tags: `))} ${e.tags.utility?e.tags.utility(a(` Utility `)):e.tags.$default(a(` Utility `))}`,{padding:0}),t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`changelog`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Changelog command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/changelog`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
1
+ import{A as e,F as t,a as n,k as r,x as i,y as a}from"./prompts-kPTN-eef.mjs";function o(){t(`${n(e.heading.secondary(`Tags: `))} ${e.tags.utility?e.tags.utility(a(` Utility `)):e.tags.$default(a(` Utility `))}`,{padding:0}),t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`changelog`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Changelog command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/changelog`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
package/bin/changelog.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,R as c,U as l,V as u,W as d,Y as f,Z as p,a as m,et as h,o as g,q as _,z as v}from"./prompts-BLU5Njeg.mjs";import{t as y}from"./update-DgBNLyO5.mjs";import{t as b}from"./changelog-BIewUxHU.mjs";async function x(e=500){if(o().get(`banner`)||l(`no-banner`)||l(`hide-banner`)||v)return;o().set(`banner`,!0),i(``),i(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+m(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,R as c,U as l,V as u,W as d,Y as f,Z as p,a as m,et as h,o as g,q as _,z as v}from"./prompts-kPTN-eef.mjs";import{t as y}from"./update-BGypfmJV.mjs";import{t as b}from"./changelog-DXvHgiml.mjs";async function x(e=500){if(o().get(`banner`)||l(`no-banner`)||l(`hide-banner`)||v)return;o().set(`banner`,!0),i(``),i(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+m(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+m(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Changelog`).length+2))/2),0))+m(t.banner.command.primary(`Changelog`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Changelog`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(m(t.banner.description.primary(`Display the Powerlines changelog.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),i(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+m(t.banner.footer.primary(`https://stormsoftware.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),c&&!d()&&await u(e)}function S(){console.log(`${t.body.primary(`textColors.body.primary("[Image: Powerlines' logo banner]")`)}
3
3
 
4
4
  ${m(t.heading.primary(`Changelog for Powerlines - CLI`))}
@@ -1 +1 @@
1
- import{A as e,F as t,a as n,k as r,x as i}from"./prompts-BLU5Njeg.mjs";function a(){t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`clean`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`The root directory of the project to clean.`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Clean command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/clean`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
1
+ import{A as e,F as t,a as n,k as r,x as i}from"./prompts-kPTN-eef.mjs";function a(){t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`clean`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`The root directory of the project to clean.`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Clean command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/clean`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
package/bin/clean.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,R as c,U as l,V as u,W as d,Y as f,Z as p,a as m,et as h,o as g,q as _,z as v}from"./prompts-BLU5Njeg.mjs";import{t as y}from"./update-DgBNLyO5.mjs";import{t as b}from"./create-powerlines-DvusHjN3.mjs";import{t as x}from"./clean-DLWZphBW.mjs";async function S(e=500){if(o().get(`banner`)||l(`no-banner`)||l(`hide-banner`)||v)return;o().set(`banner`,!0),i(``),i(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+m(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,R as c,U as l,V as u,W as d,Y as f,Z as p,a as m,et as h,o as g,q as _,z as v}from"./prompts-kPTN-eef.mjs";import{t as y}from"./update-BGypfmJV.mjs";import{t as b}from"./create-powerlines-DvusHjN3.mjs";import{t as x}from"./clean-CD8HPulv.mjs";async function S(e=500){if(o().get(`banner`)||l(`no-banner`)||l(`hide-banner`)||v)return;o().set(`banner`,!0),i(``),i(g.banner.outline.primary(`┏`)+g.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+g.banner.outline.primary(`━`)+` `+m(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+g.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+m(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Clean`).length+2))/2),0))+m(t.banner.command.primary(`Clean`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Clean`).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),r(m(t.banner.description.primary(`Cleans the project by removing build artifacts and temporary files.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+g.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(g.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+g.banner.outline.primary(`┃`),{consoleFn:console.log}),i(g.banner.outline.primary(`┗`)+g.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+m(t.banner.footer.primary(`https://stormsoftware.com`))+` `+g.banner.outline.primary(`━`.repeat(6))+g.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),c&&!d()&&await u(e)}async function C(e){await(await b(e)).clean(e)}async function w(n=a()){let r={..._()};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`)&&(/^--?(root)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?r.root=t.replace(/^--?(root)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):n.length>e+1&&(r.root=n[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return await S(),await y(),d()||(i(``),(h||e||p.LOG_LEVEL===`debug`)&&i(t.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),r.help?x():f(`clean`,[`clean`],[r],C)}export{w as handler};
@@ -1,7 +1,7 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,N as c,O as l,R as u,U as d,V as f,W as p,Y as m,Z as h,a as g,b as _,et as v,f as y,g as b,o as x,q as S,r as C,t as w,v as T,z as E}from"./prompts-BLU5Njeg.mjs";import{t as D}from"./update-DgBNLyO5.mjs";import{t as O}from"./config-xJKi9Wf3.mjs";import{n as k,t as A}from"./shared-qHUwDLYt.mjs";import j from"node:os";import{join as M}from"node:path";import{readFile as N,writeFile as P}from"node:fs/promises";async function F(e=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||E)return;o().set(`banner`,!0),i(``),i(x.banner.outline.primary(`┏`)+x.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+x.banner.outline.primary(`━`)+` `+g(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+x.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
- `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+g(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Bash Configuration`).length+2))/2),0))+g(t.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Bash Configuration`).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g(t.banner.description.primary(`Update the current system's bash shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),i(x.banner.outline.primary(`┗`)+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+g(t.banner.footer.primary(`https://stormsoftware.com`))+` `+x.banner.outline.primary(`━`.repeat(6))+x.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),u&&!p()&&await f(e)}async function I(e={},t=`~/.bashrc`){if(e.display!==!0){let e=t.includes(`.`)?t:M(t,`.bashrc`);e.startsWith(`~`)&&(e=M(j.homedir(),e.replace(`~`,``)));let n=``;try{n=await N(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)c(`Configuration file ${g(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await P(e,`${n}\n\n### Begin - Powerlines Shell Completions ###\n\n${A} \n\n### End - Powerlines Bash Completions ###`),l(`Powerlines shell completions have been applied to Bash configuration file at ${g(e)}. Please restart your terminal or run ${T(`source ${e}`)} for the changes to take effect.`)}else i(` ------------------------------------------------- `),i(``),i(`### Begin - Powerlines Bash Completions ###`),i(``),k.split(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,N as c,O as l,R as u,U as d,V as f,W as p,Y as m,Z as h,a as g,b as _,et as v,f as y,g as b,o as x,q as S,r as C,t as w,v as T,z as E}from"./prompts-kPTN-eef.mjs";import{t as D}from"./update-BGypfmJV.mjs";import{n as O,t as k}from"./shared-CmC0hiKS.mjs";import{t as A}from"./config-B6RqUSww.mjs";import j from"node:os";import{join as M}from"node:path";import{readFile as N,writeFile as P}from"node:fs/promises";async function F(e=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||E)return;o().set(`banner`,!0),i(``),i(x.banner.outline.primary(`┏`)+x.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+x.banner.outline.primary(`━`)+` `+g(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+x.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
+ `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+g(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Bash Configuration`).length+2))/2),0))+g(t.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Bash Configuration`).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g(t.banner.description.primary(`Update the current system's bash shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),i(x.banner.outline.primary(`┗`)+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+g(t.banner.footer.primary(`https://stormsoftware.com`))+` `+x.banner.outline.primary(`━`.repeat(6))+x.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),u&&!p()&&await f(e)}async function I(e={},t=`~/.bashrc`){if(e.display!==!0){let e=t.includes(`.`)?t:M(t,`.bashrc`);e.startsWith(`~`)&&(e=M(j.homedir(),e.replace(`~`,``)));let n=``;try{n=await N(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)c(`Configuration file ${g(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await P(e,`${n}\n\n### Begin - Powerlines Shell Completions ###\n\n${k} \n\n### End - Powerlines Bash Completions ###`),l(`Powerlines shell completions have been applied to Bash configuration file at ${g(e)}. Please restart your terminal or run ${T(`source ${e}`)} for the changes to take effect.`)}else i(` ------------------------------------------------- `),i(``),i(`### Begin - Powerlines Bash Completions ###`),i(``),O.split(`
3
3
  `).map(e=>i(e)),i(``),i(`### End - Powerlines Bash Completions ###`),i(``),i(` ------------------------------------------------- `),i(``),b(`To enable these completions, perform one of the following actions:
4
4
 
5
5
  1) Copy and paste the above script into your shell configuration file (e.g., ~/.bashrc)
6
6
  2) Save the above script to a file and source it from your shell configuration file `)}async function L(n=a()){let r={...S(),display:!0};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=t.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let o=Math.max(0,n.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,s=o>4?4:Math.max(0,n.slice(o).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=`~/.bashrc`;if(s+0<n.length&&s+0!==o&&(c=n[s+0]),await F(),await D(),p()||(i(``),(v||e||h.LOG_LEVEL===`debug`)&&i(t.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!u)c||[].push(`Missing required "path" positional argument`);else if(!p()&&c===void 0){if(i(``),!c){let e=await C({message:`Please provide a value for the ${_(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;c=e}i(``);let e=[];c||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${_(`Completions - Bash Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?O():m(`completions/bash/config`,[`completions`,`bash`,`config`],[r,c],I)}export{L as handler};
7
+ `)}`),r.help=!0)}return r.help?A():m(`completions/bash/config`,[`completions`,`bash`,`config`],[r,c],I)}export{L as handler};
@@ -1,7 +1,7 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,O as c,R as l,U as u,V as d,W as f,Y as p,Z as m,a as h,b as g,et as _,f as v,g as y,o as b,q as x,r as S,t as C,z as w}from"./prompts-BLU5Njeg.mjs";import{t as T}from"./update-DgBNLyO5.mjs";import{n as E,t as D}from"./shared-qHUwDLYt.mjs";import{t as O}from"./script-O-B5wCwp.mjs";import{writeFile as k}from"node:fs/promises";async function A(e=500){if(o().get(`banner`)||u(`no-banner`)||u(`hide-banner`)||w)return;o().set(`banner`,!0),i(``),i(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+h(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
- `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+h(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Bash Script`).length+2))/2),0))+h(t.banner.command.primary(`Completions - Bash Script`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Bash Script`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),r(h(t.banner.description.primary(`Generate a bash completion script for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),i(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+h(t.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),l&&!f()&&await d(e)}async function j(e={},t=`./powerlines-completions.bash`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.bash`:t;await k(e,`# Bash script to add completions for Powerlines\n\n${D}`),c(`Powerlines Bash completion script has been generated at ${h(e)}.`)}else i(` ------------------------------------------------- `),i(``),i(`# Bash completion for Powerlines`),i(``),E.split(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,O as c,R as l,U as u,V as d,W as f,Y as p,Z as m,a as h,b as g,et as _,f as v,g as y,o as b,q as x,r as S,t as C,z as w}from"./prompts-kPTN-eef.mjs";import{t as T}from"./update-BGypfmJV.mjs";import{t as E}from"./script-D250coHa.mjs";import{n as D,t as O}from"./shared-CmC0hiKS.mjs";import{writeFile as k}from"node:fs/promises";async function A(e=500){if(o().get(`banner`)||u(`no-banner`)||u(`hide-banner`)||w)return;o().set(`banner`,!0),i(``),i(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+h(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
+ `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+h(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Bash Script`).length+2))/2),0))+h(t.banner.command.primary(`Completions - Bash Script`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Bash Script`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),r(h(t.banner.description.primary(`Generate a bash completion script for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),i(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+h(t.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),l&&!f()&&await d(e)}async function j(e={},t=`./powerlines-completions.bash`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.bash`:t;await k(e,`# Bash script to add completions for Powerlines\n\n${O}`),c(`Powerlines Bash completion script has been generated at ${h(e)}.`)}else i(` ------------------------------------------------- `),i(``),i(`# Bash completion for Powerlines`),i(``),D.split(`
3
3
  `).map(e=>i(e)),i(``),i(` ------------------------------------------------- `),i(``),y(`To enable these completions, perform one of the following actions:
4
4
 
5
5
  1) Copy and paste the above script into your shell configuration file (e.g., ~/.bashrc)
6
6
  2) Save the above script to a file and source it from your shell configuration file `)}async function M(n=a()){let r={...x(),display:!0};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=t.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let o=Math.max(0,n.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,s=o>4?4:Math.max(0,n.slice(o).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=`./powerlines-completions.bash`;if(s+0<n.length&&s+0!==o&&(c=n[s+0]),await A(),await T(),f()||(i(``),(_||e||m.LOG_LEVEL===`debug`)&&i(t.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!l)c||[].push(`Missing required "path" positional argument`);else if(!f()&&c===void 0){if(i(``),!c){let e=await S({message:`Please provide a value for the ${g(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(C(e))return;c=e}i(``);let e=[];c||e.push(`Missing required "path" positional argument`),e.length>0&&(v(`The following validation failures were found while processing the user provided input, and must be corrected before the ${g(`Completions - Bash Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?O():p(`completions/bash/script`,[`completions`,`bash`,`script`],[r,c],j)}export{M as handler};
7
+ `)}`),r.help=!0)}return r.help?E():p(`completions/bash/script`,[`completions`,`bash`,`script`],[r,c],j)}export{M as handler};
@@ -1,7 +1,7 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,N as c,O as l,R as u,U as d,V as f,W as p,Y as m,Z as h,a as g,b as _,et as v,f as y,g as b,o as x,q as S,r as C,t as w,v as T,z as E}from"./prompts-BLU5Njeg.mjs";import{t as D}from"./update-DgBNLyO5.mjs";import{t as O}from"./config-CO5KKxC_.mjs";import{n as k,t as A}from"./shared-Hlp0rdy1.mjs";import j from"node:os";import{join as M}from"node:path";import{readFile as N,writeFile as P}from"node:fs/promises";async function F(e=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||E)return;o().set(`banner`,!0),i(``),i(x.banner.outline.primary(`┏`)+x.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+x.banner.outline.primary(`━`)+` `+g(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+x.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
- `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+g(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Fish Configuration`).length+2))/2),0))+g(t.banner.command.primary(`Completions - Fish Configuration`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Fish Configuration`).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g(t.banner.description.primary(`Update the current system's Fish shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),i(x.banner.outline.primary(`┗`)+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+g(t.banner.footer.primary(`https://stormsoftware.com`))+` `+x.banner.outline.primary(`━`.repeat(6))+x.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),u&&!p()&&await f(e)}async function I(e={},t=`~/.config/fish/config.fish`){if(e.display!==!0){let e=t.includes(`.`)?t:M(t,`.config`,`fish`,`config.fish`);e.startsWith(`~`)&&(e=M(j.homedir(),e.replace(`~`,``)));let n=``;try{n=await N(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)c(`Configuration file ${g(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await P(e,`${n}\n\n### Begin - Powerlines Fish Completions ###\n\n${A} \n\n### End - Powerlines Fish Completions ###`),l(`Powerlines shell completions have been applied to Fish configuration file at ${g(e)}. Please restart your terminal or run ${T(`source ${e}`)} for the changes to take effect.`)}else i(` ------------------------------------------------- `),i(``),i(`### Begin - Powerlines Fish Completions ###`),i(``),k.split(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,N as c,O as l,R as u,U as d,V as f,W as p,Y as m,Z as h,a as g,b as _,et as v,f as y,g as b,o as x,q as S,r as C,t as w,v as T,z as E}from"./prompts-kPTN-eef.mjs";import{t as D}from"./update-BGypfmJV.mjs";import{n as O,t as k}from"./shared-22Als5Ro.mjs";import{t as A}from"./config-C1NxK771.mjs";import j from"node:os";import{join as M}from"node:path";import{readFile as N,writeFile as P}from"node:fs/promises";async function F(e=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||E)return;o().set(`banner`,!0),i(``),i(x.banner.outline.primary(`┏`)+x.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+x.banner.outline.primary(`━`)+` `+g(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+x.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
+ `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+g(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Fish Configuration`).length+2))/2),0))+g(t.banner.command.primary(`Completions - Fish Configuration`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Fish Configuration`).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g(t.banner.description.primary(`Update the current system's Fish shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),i(x.banner.outline.primary(`┗`)+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+g(t.banner.footer.primary(`https://stormsoftware.com`))+` `+x.banner.outline.primary(`━`.repeat(6))+x.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),u&&!p()&&await f(e)}async function I(e={},t=`~/.config/fish/config.fish`){if(e.display!==!0){let e=t.includes(`.`)?t:M(t,`.config`,`fish`,`config.fish`);e.startsWith(`~`)&&(e=M(j.homedir(),e.replace(`~`,``)));let n=``;try{n=await N(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)c(`Configuration file ${g(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await P(e,`${n}\n\n### Begin - Powerlines Fish Completions ###\n\n${k} \n\n### End - Powerlines Fish Completions ###`),l(`Powerlines shell completions have been applied to Fish configuration file at ${g(e)}. Please restart your terminal or run ${T(`source ${e}`)} for the changes to take effect.`)}else i(` ------------------------------------------------- `),i(``),i(`### Begin - Powerlines Fish Completions ###`),i(``),O.split(`
3
3
  `).map(e=>i(e)),i(``),i(`### End - Powerlines Fish Completions ###`),i(``),i(` ------------------------------------------------- `),i(``),b(`To enable these completions, perform one of the following actions:
4
4
 
5
5
  1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/fish/config.fish)
6
6
  2) Save the above script to a file and source it from your shell configuration file `)}async function L(n=a()){let r={...S(),display:!0};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=t.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let o=Math.max(0,n.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,s=o>4?4:Math.max(0,n.slice(o).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=`~/.config/fish/config.fish`;if(s+0<n.length&&s+0!==o&&(c=n[s+0]),await F(),await D(),p()||(i(``),(v||e||h.LOG_LEVEL===`debug`)&&i(t.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!u)c||[].push(`Missing required "path" positional argument`);else if(!p()&&c===void 0){if(i(``),!c){let e=await C({message:`Please provide a value for the ${_(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;c=e}i(``);let e=[];c||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${_(`Completions - Fish Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?O():m(`completions/fish/config`,[`completions`,`fish`,`config`],[r,c],I)}export{L as handler};
7
+ `)}`),r.help=!0)}return r.help?A():m(`completions/fish/config`,[`completions`,`fish`,`config`],[r,c],I)}export{L as handler};
@@ -1,7 +1,7 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,O as c,R as l,U as u,V as d,W as f,Y as p,Z as m,a as h,b as g,et as _,f as v,g as y,o as b,q as x,r as S,t as C,z as w}from"./prompts-BLU5Njeg.mjs";import{t as T}from"./update-DgBNLyO5.mjs";import{n as E,t as D}from"./shared-Hlp0rdy1.mjs";import{t as O}from"./script-DN8bTLuk.mjs";import{writeFile as k}from"node:fs/promises";async function A(e=500){if(o().get(`banner`)||u(`no-banner`)||u(`hide-banner`)||w)return;o().set(`banner`,!0),i(``),i(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+h(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
- `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+h(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Fish Script`).length+2))/2),0))+h(t.banner.command.primary(`Completions - Fish Script`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Fish Script`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),r(h(t.banner.description.primary(`Generate a Fish completion script for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),i(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+h(t.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),l&&!f()&&await d(e)}async function j(e={},t=`./powerlines-completions.fish`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.fish`:t;await k(e,`# Fish script to add completions for Powerlines\n\n${D}`),c(`Powerlines Fish completion script has been generated at ${h(e)}.`)}else i(` ------------------------------------------------- `),i(``),i(`# Fish completion for Powerlines`),i(``),E.split(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,O as c,R as l,U as u,V as d,W as f,Y as p,Z as m,a as h,b as g,et as _,f as v,g as y,o as b,q as x,r as S,t as C,z as w}from"./prompts-kPTN-eef.mjs";import{t as T}from"./update-BGypfmJV.mjs";import{t as E}from"./script-speXDP-r.mjs";import{n as D,t as O}from"./shared-22Als5Ro.mjs";import{writeFile as k}from"node:fs/promises";async function A(e=500){if(o().get(`banner`)||u(`no-banner`)||u(`hide-banner`)||w)return;o().set(`banner`,!0),i(``),i(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+h(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
+ `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+h(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Fish Script`).length+2))/2),0))+h(t.banner.command.primary(`Completions - Fish Script`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Fish Script`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),r(h(t.banner.description.primary(`Generate a Fish completion script for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),i(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+h(t.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),l&&!f()&&await d(e)}async function j(e={},t=`./powerlines-completions.fish`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.fish`:t;await k(e,`# Fish script to add completions for Powerlines\n\n${O}`),c(`Powerlines Fish completion script has been generated at ${h(e)}.`)}else i(` ------------------------------------------------- `),i(``),i(`# Fish completion for Powerlines`),i(``),D.split(`
3
3
  `).map(e=>i(e)),i(``),i(` ------------------------------------------------- `),i(``),y(`To enable these completions, perform one of the following actions:
4
4
 
5
5
  1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/fish/config.fish)
6
6
  2) Save the above script to a file and source it from your shell configuration file `)}async function M(n=a()){let r={...x(),display:!0};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=t.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let o=Math.max(0,n.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,s=o>4?4:Math.max(0,n.slice(o).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=`./powerlines-completions.fish`;if(s+0<n.length&&s+0!==o&&(c=n[s+0]),await A(),await T(),f()||(i(``),(_||e||m.LOG_LEVEL===`debug`)&&i(t.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!l)c||[].push(`Missing required "path" positional argument`);else if(!f()&&c===void 0){if(i(``),!c){let e=await S({message:`Please provide a value for the ${g(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(C(e))return;c=e}i(``);let e=[];c||e.push(`Missing required "path" positional argument`),e.length>0&&(v(`The following validation failures were found while processing the user provided input, and must be corrected before the ${g(`Completions - Fish Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?O():p(`completions/fish/script`,[`completions`,`fish`,`script`],[r,c],j)}export{M as handler};
7
+ `)}`),r.help=!0)}return r.help?E():p(`completions/fish/script`,[`completions`,`fish`,`script`],[r,c],j)}export{M as handler};
@@ -1,7 +1,7 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,N as c,O as l,R as u,U as d,V as f,W as p,Y as m,Z as h,a as g,b as _,et as v,f as y,g as b,o as x,q as S,r as C,t as w,v as T,z as E}from"./prompts-BLU5Njeg.mjs";import{t as D}from"./update-DgBNLyO5.mjs";import{t as O}from"./config-BPhth5IY.mjs";import{n as k,t as A}from"./shared-D4Fx56Fb.mjs";import j from"node:os";import{join as M}from"node:path";import{readFile as N,writeFile as P}from"node:fs/promises";async function F(e=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||E)return;o().set(`banner`,!0),i(``),i(x.banner.outline.primary(`┏`)+x.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+x.banner.outline.primary(`━`)+` `+g(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+x.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
- `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+g(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - PowerShell Configuration`).length+2))/2),0))+g(t.banner.command.primary(`Completions - PowerShell Configuration`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - PowerShell Configuration`).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g(t.banner.description.primary(`Update the current system's PowerShell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),i(x.banner.outline.primary(`┗`)+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+g(t.banner.footer.primary(`https://stormsoftware.com`))+` `+x.banner.outline.primary(`━`.repeat(6))+x.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),u&&!p()&&await f(e)}async function I(e={},t=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`){if(e.display!==!0){let e=t.includes(`.`)?t:M(t,`Microsoft.PowerShell_profile.ps1`);e.startsWith(`~`)&&(e=M(j.homedir(),e.replace(`~`,``)));let n=``;try{n=await N(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)c(`Configuration file ${g(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await P(e,`${n}\n\n### Begin - Powerlines PowerShell Completions ###\n\n${A} \n\n### End - Powerlines PowerShell Completions ###`),l(`Powerlines shell completions have been applied to PowerShell configuration file at ${g(e)}. Please restart your terminal or run ${T(`source ${e}`)} for the changes to take effect.`)}else i(` ------------------------------------------------- `),i(``),i(`### Begin - Powerlines PowerShell Completions ###`),i(``),k.split(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,N as c,O as l,R as u,U as d,V as f,W as p,Y as m,Z as h,a as g,b as _,et as v,f as y,g as b,o as x,q as S,r as C,t as w,v as T,z as E}from"./prompts-kPTN-eef.mjs";import{t as D}from"./update-BGypfmJV.mjs";import{n as O,t as k}from"./shared-DjtOMWdz.mjs";import{t as A}from"./config-8RdAITPl.mjs";import j from"node:os";import{join as M}from"node:path";import{readFile as N,writeFile as P}from"node:fs/promises";async function F(e=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||E)return;o().set(`banner`,!0),i(``),i(x.banner.outline.primary(`┏`)+x.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+x.banner.outline.primary(`━`)+` `+g(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+x.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
+ `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+g(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - PowerShell Configuration`).length+2))/2),0))+g(t.banner.command.primary(`Completions - PowerShell Configuration`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - PowerShell Configuration`).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g(t.banner.description.primary(`Update the current system's PowerShell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),i(x.banner.outline.primary(`┗`)+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+g(t.banner.footer.primary(`https://stormsoftware.com`))+` `+x.banner.outline.primary(`━`.repeat(6))+x.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),u&&!p()&&await f(e)}async function I(e={},t=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`){if(e.display!==!0){let e=t.includes(`.`)?t:M(t,`Microsoft.PowerShell_profile.ps1`);e.startsWith(`~`)&&(e=M(j.homedir(),e.replace(`~`,``)));let n=``;try{n=await N(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)c(`Configuration file ${g(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await P(e,`${n}\n\n### Begin - Powerlines PowerShell Completions ###\n\n${k} \n\n### End - Powerlines PowerShell Completions ###`),l(`Powerlines shell completions have been applied to PowerShell configuration file at ${g(e)}. Please restart your terminal or run ${T(`source ${e}`)} for the changes to take effect.`)}else i(` ------------------------------------------------- `),i(``),i(`### Begin - Powerlines PowerShell Completions ###`),i(``),O.split(`
3
3
  `).map(e=>i(e)),i(``),i(`### End - Powerlines PowerShell Completions ###`),i(``),i(` ------------------------------------------------- `),i(``),b(`To enable these completions, perform one of the following actions:
4
4
 
5
5
  1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/powershell/Microsoft.PowerShell_profile.ps1)
6
6
  2) Save the above script to a file and source it from your shell configuration file `)}async function L(n=a()){let r={...S(),display:!0};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=t.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let o=Math.max(0,n.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,s=o>4?4:Math.max(0,n.slice(o).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`;if(s+0<n.length&&s+0!==o&&(c=n[s+0]),await F(),await D(),p()||(i(``),(v||e||h.LOG_LEVEL===`debug`)&&i(t.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!u)c||[].push(`Missing required "path" positional argument`);else if(!p()&&c===void 0){if(i(``),!c){let e=await C({message:`Please provide a value for the ${_(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;c=e}i(``);let e=[];c||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${_(`Completions - PowerShell Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?O():m(`completions/powershell/config`,[`completions`,`powershell`,`config`],[r,c],I)}export{L as handler};
7
+ `)}`),r.help=!0)}return r.help?A():m(`completions/powershell/config`,[`completions`,`powershell`,`config`],[r,c],I)}export{L as handler};
@@ -1,7 +1,7 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,O as c,R as l,U as u,V as d,W as f,Y as p,Z as m,a as h,b as g,et as _,f as v,g as y,o as b,q as x,r as S,t as C,z as w}from"./prompts-BLU5Njeg.mjs";import{t as T}from"./update-DgBNLyO5.mjs";import{n as E,t as D}from"./shared-D4Fx56Fb.mjs";import{t as O}from"./script-u89xTYDL.mjs";import{writeFile as k}from"node:fs/promises";async function A(e=500){if(o().get(`banner`)||u(`no-banner`)||u(`hide-banner`)||w)return;o().set(`banner`,!0),i(``),i(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+h(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
- `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+h(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - PowerShell Script`).length+2))/2),0))+h(t.banner.command.primary(`Completions - PowerShell Script`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - PowerShell Script`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),r(h(t.banner.description.primary(`Generate a PowerShell completion script for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),i(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+h(t.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),l&&!f()&&await d(e)}async function j(e={},t=`./powerlines-completions.ps1`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.ps1`:t;await k(e,`# PowerShell script to add completions for Powerlines\n\n${D}`),c(`Powerlines PowerShell completion script has been generated at ${h(e)}.`)}else i(` ------------------------------------------------- `),i(``),i(`# PowerShell completions for Powerlines`),i(``),E.split(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,O as c,R as l,U as u,V as d,W as f,Y as p,Z as m,a as h,b as g,et as _,f as v,g as y,o as b,q as x,r as S,t as C,z as w}from"./prompts-kPTN-eef.mjs";import{t as T}from"./update-BGypfmJV.mjs";import{t as E}from"./script-fDBVFFoL.mjs";import{n as D,t as O}from"./shared-DjtOMWdz.mjs";import{writeFile as k}from"node:fs/promises";async function A(e=500){if(o().get(`banner`)||u(`no-banner`)||u(`hide-banner`)||w)return;o().set(`banner`,!0),i(``),i(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+h(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
+ `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+h(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - PowerShell Script`).length+2))/2),0))+h(t.banner.command.primary(`Completions - PowerShell Script`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - PowerShell Script`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),r(h(t.banner.description.primary(`Generate a PowerShell completion script for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),i(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+h(t.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),l&&!f()&&await d(e)}async function j(e={},t=`./powerlines-completions.ps1`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.ps1`:t;await k(e,`# PowerShell script to add completions for Powerlines\n\n${O}`),c(`Powerlines PowerShell completion script has been generated at ${h(e)}.`)}else i(` ------------------------------------------------- `),i(``),i(`# PowerShell completions for Powerlines`),i(``),D.split(`
3
3
  `).map(e=>i(e)),i(``),i(` ------------------------------------------------- `),i(``),y(`To enable these completions, perform one of the following actions:
4
4
 
5
5
  1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/powershell/Microsoft.PowerShell_profile.ps1)
6
6
  2) Save the above script to a file and source it from your shell configuration file `)}async function M(n=a()){let r={...x(),display:!0};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];if(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=t.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let o=Math.max(0,n.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,s=o>4?4:Math.max(0,n.slice(o).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=`./powerlines-completions.ps1`;if(s+0<n.length&&s+0!==o&&(c=n[s+0]),await A(),await T(),f()||(i(``),(_||e||m.LOG_LEVEL===`debug`)&&i(t.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!l)c||[].push(`Missing required "path" positional argument`);else if(!f()&&c===void 0){if(i(``),!c){let e=await S({message:`Please provide a value for the ${g(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(C(e))return;c=e}i(``);let e=[];c||e.push(`Missing required "path" positional argument`),e.length>0&&(v(`The following validation failures were found while processing the user provided input, and must be corrected before the ${g(`Completions - PowerShell Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?O():p(`completions/powershell/script`,[`completions`,`powershell`,`script`],[r,c],j)}export{M as handler};
7
+ `)}`),r.help=!0)}return r.help?E():p(`completions/powershell/script`,[`completions`,`powershell`,`script`],[r,c],j)}export{M as handler};
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,N as c,O as l,R as u,U as d,V as f,W as p,Y as m,Z as h,a as g,b as _,et as v,f as y,g as b,o as x,q as S,r as C,t as w,v as T,z as E}from"./prompts-BLU5Njeg.mjs";import{t as D}from"./update-DgBNLyO5.mjs";import{n as O,t as k}from"./shared-COSavxt_.mjs";import{t as A}from"./config-tOpMiszf.mjs";import j from"node:os";import{join as M}from"node:path";import{readFile as N,writeFile as P}from"node:fs/promises";async function F(e=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||E)return;o().set(`banner`,!0),i(``),i(x.banner.outline.primary(`┏`)+x.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+x.banner.outline.primary(`━`)+` `+g(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+x.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,N as c,O as l,R as u,U as d,V as f,W as p,Y as m,Z as h,a as g,b as _,et as v,f as y,g as b,o as x,q as S,r as C,t as w,v as T,z as E}from"./prompts-kPTN-eef.mjs";import{t as D}from"./update-BGypfmJV.mjs";import{n as O,t as k}from"./shared-D47pc0eC.mjs";import{t as A}from"./config-DPz93Dvj.mjs";import j from"node:os";import{join as M}from"node:path";import{readFile as N,writeFile as P}from"node:fs/promises";async function F(e=500){if(o().get(`banner`)||d(`no-banner`)||d(`hide-banner`)||E)return;o().set(`banner`,!0),i(``),i(x.banner.outline.primary(`┏`)+x.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+x.banner.outline.primary(`━`)+` `+g(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+x.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+g(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Zsh Configuration`).length+2))/2),0))+g(t.banner.command.primary(`Completions - Zsh Configuration`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Zsh Configuration`).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),r(g(t.banner.description.primary(`Update the current system's Zsh shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+x.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(x.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+x.banner.outline.primary(`┃`),{consoleFn:console.log}),i(x.banner.outline.primary(`┗`)+x.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+g(t.banner.footer.primary(`https://stormsoftware.com`))+` `+x.banner.outline.primary(`━`.repeat(6))+x.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),u&&!p()&&await f(e)}async function I(e={},t=`~/.zshrc`){if(e.display!==!0){let e=t.includes(`.`)?t:M(t,`.zshrc`);e.startsWith(`~`)&&(e=M(j.homedir(),e.replace(`~`,``)));let n=``;try{n=await N(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)c(`Configuration file ${g(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await P(e,`${n}\n\n### Begin - Powerlines Shell Completions ###\n\n${k} \n\n### End - Powerlines Zsh Completions ###`),l(`Powerlines shell completions have been applied to Zsh configuration file at ${g(e)}. Please restart your terminal or run ${T(`source ${e}`)} for the changes to take effect.`)}else i(` ------------------------------------------------- `),i(``),i(`### Begin - Powerlines Zsh Completions ###`),i(``),O.split(`
3
3
  `).map(e=>i(e)),i(``),i(`### End - Powerlines Zsh Completions ###`),i(``),i(` ------------------------------------------------- `),i(``),b(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
1
- import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,O as c,R as l,U as u,V as d,W as f,Y as p,Z as m,a as h,b as g,et as _,f as v,g as y,o as b,q as x,r as S,t as C,z as w}from"./prompts-BLU5Njeg.mjs";import{t as T}from"./update-DgBNLyO5.mjs";import{t as E}from"./script-CFsIg7x3.mjs";import{n as D,t as O}from"./shared-COSavxt_.mjs";import{writeFile as k}from"node:fs/promises";async function A(e=500){if(o().get(`banner`)||u(`no-banner`)||u(`hide-banner`)||w)return;o().set(`banner`,!0),i(``),i(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+h(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
1
+ import{$ as e,A as t,D as n,E as r,F as i,G as a,J as o,L as s,O as c,R as l,U as u,V as d,W as f,Y as p,Z as m,a as h,b as g,et as _,f as v,g as y,o as b,q as x,r as S,t as C,z as w}from"./prompts-kPTN-eef.mjs";import{t as T}from"./update-BGypfmJV.mjs";import{t as E}from"./script-Co8vISfS.mjs";import{n as D,t as O}from"./shared-D47pc0eC.mjs";import{writeFile as k}from"node:fs/promises";async function A(e=500){if(o().get(`banner`)||u(`no-banner`)||u(`hide-banner`)||w)return;o().set(`banner`,!0),i(``),i(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+t.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+h(t.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█████▄ ▄▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄ ▄▄ ▄▄ ▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄▄`,`██▄▄█▀ ██▀██ ██ ▄ ██ ██▄▄ ██▄█▄ ██ ██ ███▄██ ██▄▄ ███▄▄`,`██ ▀███▀ ▀█▀█▀ ██▄▄▄ ██ ██ ██▄▄▄ ██ ██ ▀██ ██▄▄▄ ▄▄██▀`];r(Math.max(...a.map(e=>n(e).length))>Math.max(s().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+h(t.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(`Completions - Zsh Script`).length+2))/2),0))+h(t.banner.command.primary(`Completions - Zsh Script`))+` `.repeat(Math.max(Math.ceil((s().columns-(n(`Completions - Zsh Script`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),r(h(t.banner.description.primary(`Generate a Zsh completion script for the Powerlines command-line interface.`)),Math.max(60>s().columns/2?s().columns-6:s().columns-30,20)).forEach(e=>{i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((s().columns-(n(e).length+2))/2),0))+t.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((s().columns-(n(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(s().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),i(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(s().columns-35,0)))+` `+h(t.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),l&&!f()&&await d(e)}async function j(e={},t=`powerlines-completions.zsh`){if(e.display!==!0){let e=t.includes(`.`)?`${t}.zsh`:t;await k(e,`# Zsh script to add completions for Powerlines\n\n${O}`),c(`Powerlines Zsh completion script has been generated at ${h(e)}.`)}else i(` ------------------------------------------------- `),i(``),i(`#compdef powerlines `),i(`#compdef _powerlines powerlines`),i(``),i(`# Zsh completion for Powerlines`),i(``),D.split(`
3
3
  `).map(e=>i(e)),i(``),i(` ------------------------------------------------- `),i(``),y(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1 +1 @@
1
- import{A as e,F as t,a as n,k as r,x as i,y as a}from"./prompts-BLU5Njeg.mjs";function o(){t(`${n(e.heading.secondary(`Tags: `))} ${e.tags.utility?e.tags.utility(a(` Utility `)):e.tags.$default(a(` Utility `))}`,{padding:0}),t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`completions`)} ${e.usage.command(`powershell`)} ${e.usage.command(`config`)} ${e.usage.args(`<path>`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`completions`)} ${e.usage.command(`powershell`)} ${e.usage.command(`config`)} ${e.usage.options(`[options]`)} ${e.usage.args(`<path>`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Completions - PowerShell Configuration command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/powershell/config`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
1
+ import{A as e,F as t,a as n,k as r,x as i,y as a}from"./prompts-kPTN-eef.mjs";function o(){t(`${n(e.heading.secondary(`Tags: `))} ${e.tags.utility?e.tags.utility(a(` Utility `)):e.tags.$default(a(` Utility `))}`,{padding:0}),t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`completions`)} ${e.usage.command(`powershell`)} ${e.usage.command(`config`)} ${e.usage.args(`<path>`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`completions`)} ${e.usage.command(`powershell`)} ${e.usage.command(`config`)} ${e.usage.options(`[options]`)} ${e.usage.args(`<path>`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Completions - PowerShell Configuration command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/powershell/config`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
@@ -1 +1 @@
1
- import{A as e,F as t,a as n,k as r,x as i,y as a}from"./prompts-BLU5Njeg.mjs";function o(){t(`${n(e.heading.secondary(`Tags: `))} ${e.tags.utility?e.tags.utility(a(` Utility `)):e.tags.$default(a(` Utility `))}`,{padding:0}),t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`completions`)} ${e.usage.command(`bash`)} ${e.usage.command(`config`)} ${e.usage.args(`<path>`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`completions`)} ${e.usage.command(`bash`)} ${e.usage.command(`config`)} ${e.usage.options(`[options]`)} ${e.usage.args(`<path>`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Completions - Bash Configuration command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/bash/config`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
1
+ import{A as e,F as t,a as n,k as r,x as i,y as a}from"./prompts-kPTN-eef.mjs";function o(){t(`${n(e.heading.secondary(`Tags: `))} ${e.tags.utility?e.tags.utility(a(` Utility `)):e.tags.$default(a(` Utility `))}`,{padding:0}),t(``),t(n(e.heading.secondary(`Usage:`))),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`completions`)} ${e.usage.command(`bash`)} ${e.usage.command(`config`)} ${e.usage.args(`<path>`)} ${e.usage.options(`[options]`)}`),{padding:0}),t(e.body.secondary(`${e.usage.bin(`>_ powerlines`)} ${e.usage.command(`completions`)} ${e.usage.command(`bash`)} ${e.usage.command(`config`)} ${e.usage.options(`[options]`)} ${e.usage.args(`<path>`)}`),{padding:0}),t(``),t(n(e.heading.secondary(`Options:`))),r([[{value:e.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:e.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:e.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(e.body.tertiary(`More information can be found in the Completions - Bash Configuration command documentation at ${i(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/bash/config`)}${e.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};