powerlines 0.47.125 → 0.47.127

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 (72) hide show
  1. package/bin/bin.mjs +7 -7
  2. package/bin/build-DB7Qg8JL.mjs +1 -0
  3. package/bin/build.mjs +1 -1
  4. package/bin/changelog-BvwdAR9P.mjs +1 -0
  5. package/bin/changelog.mjs +8 -2
  6. package/bin/clean-BvoWipQk.mjs +1 -0
  7. package/bin/clean.mjs +1 -1
  8. package/bin/completions-bash-config.mjs +4 -4
  9. package/bin/completions-bash-script.mjs +3 -3
  10. package/bin/completions-fish-config.mjs +4 -4
  11. package/bin/completions-fish-script.mjs +3 -3
  12. package/bin/completions-powershell-config.mjs +4 -4
  13. package/bin/completions-powershell-script.mjs +3 -3
  14. package/bin/completions-zsh-config.mjs +3 -3
  15. package/bin/completions-zsh-script.mjs +2 -2
  16. package/bin/config-CBOLGGRN.mjs +1 -0
  17. package/bin/config-Cgy-77bf.mjs +1 -0
  18. package/bin/config-DN4qOrRO.mjs +1 -0
  19. package/bin/config-DrW3et5b.mjs +1 -0
  20. package/bin/create-T3P6LNng.mjs +1 -0
  21. package/bin/create-powerlines-DvusHjN3.mjs +1 -0
  22. package/bin/create.mjs +1 -1
  23. package/bin/deploy-DRvDq2cP.mjs +1 -0
  24. package/bin/deploy.mjs +1 -1
  25. package/bin/docs-M1aA2x15.mjs +1 -0
  26. package/bin/docs.mjs +1 -1
  27. package/bin/gc-CdHVi7oK.mjs +1 -0
  28. package/bin/gc.mjs +1 -1
  29. package/bin/help.mjs +2 -2
  30. package/bin/lint-Nf5sAXLr.mjs +1 -0
  31. package/bin/lint.mjs +1 -1
  32. package/bin/prepare-DzdEY2vL.mjs +1 -0
  33. package/bin/prepare.mjs +1 -1
  34. package/bin/{prompts-BO1_kAkC.mjs → prompts-Rsqng44G.mjs} +2 -2
  35. package/bin/script-BH-9NBWs.mjs +1 -0
  36. package/bin/script-CA2uVVUu.mjs +1 -0
  37. package/bin/script-DTC5wHER.mjs +1 -0
  38. package/bin/script-DhtPxvAu.mjs +1 -0
  39. package/bin/{shared-6FTnkwEI.mjs → shared-BUzfvq3v.mjs} +4 -4
  40. package/bin/{shared-C7IWiq-2.mjs → shared-BsePrzLP.mjs} +68 -68
  41. package/bin/{shared-e9pqDaa3.mjs → shared-CJXquqHR.mjs} +28 -28
  42. package/bin/{shared-Dhxn0TVd.mjs → shared-CgiVDHJI.mjs} +33 -33
  43. package/bin/types-Dn7zaJcB.mjs +1 -0
  44. package/bin/types.mjs +1 -1
  45. package/bin/upgrade-BZwwh4wZ.mjs +1 -0
  46. package/bin/{upgrade-D7LbxJ-i.mjs → upgrade-CbOYYUL8.mjs} +1 -1
  47. package/bin/upgrade.mjs +2 -2
  48. package/bin/zsh-R9CKPSsN.mjs +3 -0
  49. package/dist/package.cjs +1 -1
  50. package/dist/package.mjs +1 -1
  51. package/package.json +7 -7
  52. package/bin/build-DLpROs1Y.mjs +0 -1
  53. package/bin/changelog-BRROp0c_.mjs +0 -1
  54. package/bin/clean-BK0v29iM.mjs +0 -1
  55. package/bin/config-CHoghPrR.mjs +0 -1
  56. package/bin/config-CY1Qq9ZH.mjs +0 -1
  57. package/bin/config-CmSSUBEW.mjs +0 -1
  58. package/bin/config-DVkCUl-v.mjs +0 -1
  59. package/bin/create-NSNAgFJY.mjs +0 -1
  60. package/bin/create-powerlines-DeMZsc3_.mjs +0 -1
  61. package/bin/deploy-ULfMjQyY.mjs +0 -1
  62. package/bin/docs-BchaiW6S.mjs +0 -1
  63. package/bin/gc-D7LfDJqD.mjs +0 -1
  64. package/bin/lint-DgwBwH7Y.mjs +0 -1
  65. package/bin/prepare-BIckwpx0.mjs +0 -1
  66. package/bin/script-DKzNu_a1.mjs +0 -1
  67. package/bin/script-DLuJ6_sY.mjs +0 -1
  68. package/bin/script-DNHmJ5AE.mjs +0 -1
  69. package/bin/script-Dj5dsyLK.mjs +0 -1
  70. package/bin/types-Cj1dBpbF.mjs +0 -1
  71. package/bin/upgrade-DoVBmRQU.mjs +0 -1
  72. package/bin/zsh-CT9O9pWB.mjs +0 -3
package/bin/bin.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import{B as e,F as t,G as n,H as r,I as i,J as a,M as o,N as s,O as c,P as l,R as u,T as d,U as f,V as p,X as m,Z as h,a as g,f as _,k as v,n as y,o as b,q as x,r as S,t as C,w}from"./prompts-BO1_kAkC.mjs";import{a as T,i as E,n as D,o as O,r as k,t as A}from"./zsh-CT9O9pWB.mjs";async function j(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
4
- `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Command Line Interface`).length+2))/2),0))+g(c.banner.command.primary(`Command Line Interface`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Command Line Interface`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.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>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function M(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
5
- `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions`).length+2))/2),0))+g(c.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands for generating shell completion scripts for Command Line Interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function N(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
6
- `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions - Bash`).length+2))/2),0))+g(c.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions - Bash`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands to setup bash completions for the command-line interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function P(e=r()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`config`,`script`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await N();let t=await y({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cli completions bash config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cli completions bash script)`,icon:`🖵`}]});if(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(4)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`config`,`script`]).slice(0,3);_(`Unknown command: "${n}"${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 F(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
7
- `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions - Fish`).length+2))/2),0))+g(c.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions - Fish`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands to setup Fish completions for the command-line interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function I(e=r()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`config`,`script`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await F();let t=await y({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cli completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cli completions fish script)`,icon:`🖵`}]});if(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(4)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`config`,`script`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return k()}async function L(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
8
- `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions - PowerShell`).length+2))/2),0))+g(c.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions - PowerShell`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands to setup PowerShell completions for the command-line interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function R(e=r()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`config`,`script`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await L();let t=await y({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cli completions powershell config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cli completions powershell script)`,icon:`🖵`}]});if(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(4)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`config`,`script`]).slice(0,3);_(`Unknown command: "${n}"${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 z(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
9
- `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions - Zsh`).length+2))/2),0))+g(c.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions - Zsh`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands to setup Zsh completions for the command-line interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function B(e=r()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await z();let t=await y({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cli completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cli completions zsh config)`,icon:`🖵`}]});if(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(4)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}async function V(e=r()){let n=``;if(e.length>3&&e[3]&&(n=e[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return P(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return I(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return R(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return B(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`bash`,`fish`,`powershell`,`zsh`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await M();let t=await y({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cli completions bash config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cli completions bash script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cli completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cli completions fish script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cli completions powershell config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cli completions powershell script)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cli completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cli completions zsh config)`,icon:`🖵`}]});if(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(3)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return P(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return I(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return R(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return B(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`bash`,`fish`,`powershell`,`zsh`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}let H=!1;const U=[],W=[];async function G(t={}){try{if(H)return;H=!0;let n=0;t.signal!==void 0&&t.signal>0||t.exception?n=128+(t.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(n=process.exitCode),t.exception&&_({message:`A fatal error occured while running the application - please contact the Command Line Interface support team${t.exception&&typeof t.exception!=`symbol`?`: \n\n${typeof t.exception==`string`?t.exception:t.exception.message}`:`.`}`,...t.exception&&typeof t.exception==`object`?{stack:t.exception.stack}:{}});let r=(r=!1)=>{(h||m||a.LOG_LEVEL===`debug`||e([`verbose`,`verbose=true`,`verbose=always`]))&&o(``),v(`The application exited ${t.exception?`early due to an exception`:`successfully`}${t.startDate?`. Total processing time is ${Date.now()-t.startDate.getTime()>5e3?Math.floor((Date.now()-t.startDate.getTime())/1e3):Date.now()-t.startDate.getTime()} ${Date.now()-t.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),t.skipProcessExit||process.nextTick(()=>process.exit(n))};for(let e of W)e(n);if(!t.isSynchronous){let e=[],t=0;for(let[r,i]of U)t=Math.max(t,i),e.push(Promise.resolve(r(n)));let i=setTimeout(()=>{r(!0)},t);await Promise.all(e),clearTimeout(i)}r()}catch(e){_(`The exit process failed to complete${e?.message?` - ${e.message}`:``}. Please contact the support team.`),t.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function K(){if(e([`version`,`v`])){console.log(`0.2.40`);return}let n=r(),i=``;if(n.length>2&&n[2]&&(i=n[2]),!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prune`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`publish`)return(await import(`./deploy.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completion`)return V(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`up`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`)return(await import(`./upgrade.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(n);if(i&&!i.startsWith(`-`)){let e=s(i,[`types`,`prepare`,`lint`,`gc`,`prune`,`garbage-collection`,`docs`,`deploy`,`deployment`,`publish`,`create`,`clean`,`build`,`changelog`,`completions`,`completion`,`upgrade`,`up`,`update`,`help`]).slice(0,3);_(`Unknown command: "${i}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await j();let e=await y({message:`Which command would you like to execute?`,options:[{value:[`types`],label:`Generate Typescript Declaration File`,description:`(cli types)`,icon:`🖹`},{value:[`prepare`],label:`Prepare Artifacts`,description:`(cli prepare)`,icon:`🖉`},{value:[`lint`],label:`Lint Source Code`,description:`(cli lint)`,icon:`🗹`},{value:[`gc`],label:`Garbage Collection`,description:`(cli gc)`,icon:`🗶`},{value:[`docs`],label:`Generate Documentation`,description:`(cli docs)`,icon:`🕮`},{value:[`deploy`],label:`Deploy`,description:`(cli deploy)`,icon:`🛪`},{value:[`create`],label:`Create Project`,description:`(cli create)`,icon:`⬚`},{value:[`clean`],label:`Clean`,description:`(cli clean)`,icon:`🗑`},{value:[`build`],label:`Build`,description:`(cli build)`,icon:`🏗`},{value:[`changelog`],label:`Changelog`,description:`(cli changelog)`,icon:`🗃`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(cli completions bash config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(cli completions bash script)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(cli completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(cli completions fish script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cli completions powershell config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cli completions powershell script)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(cli completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cli completions zsh config)`,icon:`🖵`},{value:[`upgrade`],label:`Upgrade`,description:`(cli upgrade)`,icon:`🖒`},{value:[`help`],label:`Help`,description:`(cli help)`,icon:`🛈`}]});if(C(e))return;let t={};for(let n of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${n.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;t[n]=e}e=e.map(e=>t[e]||e);let r=f();if(r&&(r.inputArgs=[n.length>0?n[0]:void 0,n.length>1?n[1]:void 0,...e,...n.slice(2)].filter(Boolean)),i=e[0],n=r.inputArgs,!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prune`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`publish`)return(await import(`./deploy.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completion`)return V(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`up`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`)return(await import(`./upgrade.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(n);if(i&&!i.startsWith(`-`)){let e=s(i,[`types`,`prepare`,`lint`,`gc`,`prune`,`garbage-collection`,`docs`,`deploy`,`deployment`,`publish`,`create`,`clean`,`build`,`changelog`,`completions`,`completion`,`upgrade`,`up`,`update`,`help`]).slice(0,3);_(`Unknown command: "${i}"${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 j(0),O()}(async()=>{let e=new Date;try{process.on(`exit`,()=>G({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>G({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&G({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>G({startDate:e,signal:15})),process.once(`SIGINT`,()=>G({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(v(`The application was terminated by the user`),G({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(v(`The application was terminated by the user`),G({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>G({startDate:e,exception:n||Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await x(async()=>{let e=await K();e?.error&&_(e.error)}),G({startDate:e})}catch(t){G({startDate:e,exception:t})}})();export{G as exit};
3
+ import{B as e,F as t,G as n,H as r,I as i,J as a,M as o,N as s,O as c,P as l,R as u,T as d,U as f,V as p,X as m,Z as h,a as g,f as _,k as v,n as y,o as b,q as x,r as S,t as C,w}from"./prompts-Rsqng44G.mjs";import{a as T,i as E,n as D,o as O,r as k,t as A}from"./zsh-R9CKPSsN.mjs";async function j(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
4
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Powerlines`).length+2))/2),0))+g(c.banner.command.primary(`Powerlines`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Powerlines`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.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>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function M(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
5
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions`).length+2))/2),0))+g(c.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands for generating shell completion scripts for Powerlines.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function N(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
6
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions - Bash`).length+2))/2),0))+g(c.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions - Bash`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands to setup bash completions for the Powerlines command-line interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function P(e=r()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await N();let t=await y({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(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(4)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${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 F(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
7
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions - Fish`).length+2))/2),0))+g(c.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions - Fish`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands to setup Fish completions for the Powerlines command-line interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function I(e=r()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await F();let t=await y({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(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(4)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return k()}async function L(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
8
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions - PowerShell`).length+2))/2),0))+g(c.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions - PowerShell`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands to setup PowerShell completions for the Powerlines command-line interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function R(e=r()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await L();let t=await y({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(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(4)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${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 z(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),o(``),o(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];w(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
9
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Completions - Zsh`).length+2))/2),0))+g(c.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Completions - Zsh`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),w(g(c.banner.description.primary(`Commands to setup Zsh completions for the Powerlines command-line interface.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),t&&!p()&&await u(r)}async function B(e=r()){let n=``;if(e.length>4&&e[4]&&(n=e[4]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await z();let t=await y({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(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(4)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`script`,`config`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return A()}async function V(e=r()){let n=``;if(e.length>3&&e[3]&&(n=e[3]),!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return B(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return R(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return P(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return I(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`zsh`,`powershell`,`bash`,`fish`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await M();let t=await y({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`,`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:[`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`,`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(C(t))return;let r={};for(let e of t.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let t=await S({message:`Please provide a value for ${e.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(t))return;r[e]=t}t=t.map(e=>r[e]||e);let i=f();if(i&&(i.inputArgs=[e.length>0?e[0]:void 0,e.length>1?e[1]:void 0,...t,...e.slice(3)].filter(Boolean)),n=t[0],e=i.inputArgs,!n.startsWith(`-`)){if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return B(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return R(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return P(e);if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return I(e);if(n&&!n.startsWith(`-`)){let e=s(n,[`zsh`,`powershell`,`bash`,`fish`]).slice(0,3);_(`Unknown command: "${n}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}}return T()}let H=!1;const U=[],W=[];async function G(t={}){try{if(H)return;H=!0;let n=0;t.signal!==void 0&&t.signal>0||t.exception?n=128+(t.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(n=process.exitCode),t.exception&&_({message:`A fatal error occured while running the application - please contact the Powerlines support team${t.exception&&typeof t.exception!=`symbol`?`: \n\n${typeof t.exception==`string`?t.exception:t.exception.message}`:`.`}`,...t.exception&&typeof t.exception==`object`?{stack:t.exception.stack}:{}});let r=(r=!1)=>{(h||m||a.LOG_LEVEL===`debug`||e([`verbose`,`verbose=true`,`verbose=always`]))&&o(``),v(`The Powerlines application exited ${t.exception?`early due to an exception`:`successfully`}${t.startDate?`. Total processing time is ${Date.now()-t.startDate.getTime()>5e3?Math.floor((Date.now()-t.startDate.getTime())/1e3):Date.now()-t.startDate.getTime()} ${Date.now()-t.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),t.skipProcessExit||process.nextTick(()=>process.exit(n))};for(let e of W)e(n);if(!t.isSynchronous){let e=[],t=0;for(let[r,i]of U)t=Math.max(t,i),e.push(Promise.resolve(r(n)));let i=setTimeout(()=>{r(!0)},t);await Promise.all(e),clearTimeout(i)}r()}catch(e){_(`The exit process failed to complete${e?.message?` - ${e.message}`:``}. Please contact the Powerlines support team.`),t.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function K(){if(e([`version`,`v`])){console.log(`0.47.125`);return}let n=r(),i=``;if(n.length>2&&n[2]&&(i=n[2]),!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prune`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`publish`)return(await import(`./deploy.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completion`)return V(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`up`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`)return(await import(`./upgrade.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(n);if(i&&!i.startsWith(`-`)){let e=s(i,[`types`,`prepare`,`gc`,`prune`,`garbage-collection`,`lint`,`docs`,`deploy`,`deployment`,`publish`,`create`,`clean`,`build`,`changelog`,`completions`,`completion`,`upgrade`,`up`,`update`,`help`]).slice(0,3);_(`Unknown command: "${i}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(t&&!p()){await j();let e=await y({message:`Which command would you like to execute?`,options:[{value:[`types`],label:`Generate Typescript Declaration File`,description:`(powerlines types)`,icon:`🖹`},{value:[`prepare`],label:`Prepare Artifacts`,description:`(powerlines prepare)`,icon:`🖉`},{value:[`gc`],label:`Garbage Collection`,description:`(powerlines gc)`,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:[`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`,`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`,`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:[`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`,`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:[`upgrade`],label:`Upgrade`,description:`(powerlines upgrade)`,icon:`🖒`},{value:[`help`],label:`Help`,description:`(powerlines help)`,icon:`🛈`}]});if(C(e))return;let t={};for(let n of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await S({message:`Please provide a value for ${n.replace(/^[+/, "").replace(/]+$/,``)}:`});if(C(e))return;t[n]=e}e=e.map(e=>t[e]||e);let r=f();if(r&&(r.inputArgs=[n.length>0?n[0]:void 0,n.length>1?n[1]:void 0,...e,...n.slice(2)].filter(Boolean)),i=e[0],n=r.inputArgs,!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prune`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`publish`)return(await import(`./deploy.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completion`)return V(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`up`||i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`)return(await import(`./upgrade.mjs`).then(e=>e.handler))(n);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(n);if(i&&!i.startsWith(`-`)){let e=s(i,[`types`,`prepare`,`gc`,`prune`,`garbage-collection`,`lint`,`docs`,`deploy`,`deployment`,`publish`,`create`,`clean`,`build`,`changelog`,`completions`,`completion`,`upgrade`,`up`,`update`,`help`]).slice(0,3);_(`Unknown command: "${i}"${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 j(0),O()}(async()=>{let e=new Date;try{process.on(`exit`,()=>G({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>G({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&G({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>G({startDate:e,signal:15})),process.once(`SIGINT`,()=>G({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(v(`The application was terminated by the user`),G({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(v(`The application was terminated by the user`),G({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>G({startDate:e,exception:n||Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await x(async()=>{let e=await K();e?.error&&_(e.error)}),G({startDate:e})}catch(t){G({startDate:e,exception:t})}})();export{G as exit};
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`build`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/build.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-BO1_kAkC.mjs";import{t as b}from"./upgrade-D7LbxJ-i.mjs";import{t as x}from"./create-powerlines-DeMZsc3_.mjs";import{t as S}from"./build-DLpROs1Y.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./build-DB7Qg8JL.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Build`).length+2))/2),0))+g(c.banner.command.primary(`Build`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Build`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Builds the project for production deployment.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}async function w(e){await(await x(e)).build(e)}async function T(e=r()){let t={...p()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await C(),await b(),s(``),(h||m||a.LOG_LEVEL===`debug`)&&(s(c.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),s(``),v(`Command path: build
3
3
 
4
4
  Options:
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`changelog`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/changelog.mjs CHANGED
@@ -1,8 +1,14 @@
1
- import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-BO1_kAkC.mjs";import{t as b}from"./upgrade-D7LbxJ-i.mjs";import{t as x}from"./changelog-BRROp0c_.mjs";async function S(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
2
- `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Changelog`).length+2))/2),0))+g(c.banner.command.primary(`Changelog`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Changelog`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Display the Command Line Interface changelog.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}function C(){console.log(`${c.body.primary(`textColors.body.primary("[Image: Powerlines' logo banner]")`)}
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./changelog-BvwdAR9P.mjs";async function S(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Changelog`).length+2))/2),0))+g(c.banner.command.primary(`Changelog`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Changelog`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Display the Powerlines changelog.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}function C(){console.log(`${c.body.primary(`textColors.body.primary("[Image: Powerlines' logo banner]")`)}
3
3
 
4
4
  ${g(c.heading.primary(`Changelog for Powerlines - CLI`))}
5
5
 
6
+ ${g(c.heading.secondary(`0.47.125 (06/05/2026)`))}
7
+
8
+ ${g(c.heading.tertiary(`Features`))}
9
+
10
+ ${c.body.primary(`• cli: Updated CLI to deploy as standalone package (990f64bc9)`)}
11
+
6
12
  ${g(c.heading.secondary(`0.2.40 (05/13/2026)`))}
7
13
 
8
14
  ${g(c.heading.tertiary(`Updated Dependencies`))}
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`clean`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/clean.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-BO1_kAkC.mjs";import{t as b}from"./upgrade-D7LbxJ-i.mjs";import{t as x}from"./create-powerlines-DeMZsc3_.mjs";import{t as S}from"./clean-BK0v29iM.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./clean-BvoWipQk.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Clean`).length+2))/2),0))+g(c.banner.command.primary(`Clean`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Clean`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Cleans the project by removing build artifacts and temporary files.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}async function w(e){await(await x(e)).clean(e)}async function T(e=r()){let t={...p()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await C(),await b(),s(``),(h||m||a.LOG_LEVEL===`debug`)&&(s(c.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),s(``),v(`Command path: clean
3
3
 
4
4
  Options:
@@ -1,9 +1,9 @@
1
- import{A as e,B as t,E as n,F as r,G as i,H as a,I as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,V as m,W as h,X as g,Z as _,a as v,g as y,o as b,u as x,v as S,w as C}from"./prompts-BO1_kAkC.mjs";import{t as w}from"./upgrade-D7LbxJ-i.mjs";import{t as T}from"./config-CY1Qq9ZH.mjs";import{n as E,t as D}from"./shared-6FTnkwEI.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(e=500){if(i().get(`banner`)||t(`no-banner`)||t(`hide-banner`)||o)return;i().set(`banner`,!0),l(``),l(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=[`Command-Line Interface`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?``:`\n${n.join(`
2
- `)}\n`,Math.max(d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(`Completions - Bash Configuration`).length+2))/2),0))+v(u.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((d().columns-(p(`Completions - Bash Configuration`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),C(v(u.banner.description.primary(`Update the current system's bash shell configuration to include completions for the command-line interface.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),l(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-35,0)))+` `+v(u.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),l(``),r&&!m()&&await f(e)}async function N(t={},r=`~/.bashrc`){if(t.display!==!0){let t=r.includes(`.`)?r:k(r,`.bashrc`);t.startsWith(`~`)&&(t=k(O.homedir(),t.replace(`~`,``)));let i=``;try{i=await A(t,`utf8`)}catch(n){if(typeof n==`object`&&n&&`code`in n&&n.code===`ENOENT`)e(`Configuration file ${v(t)} does not exist. It will be created when the completion script is written.`);else return{error:n}}await j(t,`${i}\n\n### Begin - Command Line Interface Shell Completions ###\n\n${D} \n\n### End - Command Line Interface Bash Completions ###`),n(`Command Line Interface shell completions have been applied to Bash configuration file at ${v(t)}. Please restart your terminal or run ${S(`source ${t}`)} for the changes to take effect.`)}else l(` ------------------------------------------------- `),l(``),l(`### Begin - Command Line Interface Bash Completions ###`),l(``),E.split(`
3
- `).map(e=>l(e)),l(``),l(`### End - Command Line Interface Bash Completions ###`),l(``),l(` ------------------------------------------------- `),l(``),y(`To enable these completions, perform one of the following actions:
1
+ import{A as e,B as t,E as n,F as r,G as i,H as a,I as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,V as m,W as h,X as g,Z as _,a as v,g as y,o as b,u as x,v as S,w as C}from"./prompts-Rsqng44G.mjs";import{t as w}from"./upgrade-CbOYYUL8.mjs";import{n as T,t as E}from"./shared-BUzfvq3v.mjs";import{t as D}from"./config-DrW3et5b.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(e=500){if(i().get(`banner`)||t(`no-banner`)||t(`hide-banner`)||o)return;i().set(`banner`,!0),l(``),l(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?`Powerlines`:`\n${n.join(`
2
+ `)}\n`,Math.max(d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(`Completions - Bash Configuration`).length+2))/2),0))+v(u.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((d().columns-(p(`Completions - Bash Configuration`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),C(v(u.banner.description.primary(`Update the current system's bash shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),l(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-35,0)))+` `+v(u.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),l(``),r&&!m()&&await f(e)}async function N(t={},r=`~/.bashrc`){if(t.display!==!0){let t=r.includes(`.`)?r:k(r,`.bashrc`);t.startsWith(`~`)&&(t=k(O.homedir(),t.replace(`~`,``)));let i=``;try{i=await A(t,`utf8`)}catch(n){if(typeof n==`object`&&n&&`code`in n&&n.code===`ENOENT`)e(`Configuration file ${v(t)} does not exist. It will be created when the completion script is written.`);else return{error:n}}await j(t,`${i}\n\n### Begin - Powerlines Shell Completions ###\n\n${E} \n\n### End - Powerlines Bash Completions ###`),n(`Powerlines shell completions have been applied to Bash configuration file at ${v(t)}. Please restart your terminal or run ${S(`source ${t}`)} for the changes to take effect.`)}else l(` ------------------------------------------------- `),l(``),l(`### Begin - Powerlines Bash Completions ###`),l(``),T.split(`
3
+ `).map(e=>l(e)),l(``),l(`### End - Powerlines Bash Completions ###`),l(``),l(` ------------------------------------------------- `),l(``),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 P(e=a()){let t={...h()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await M(),await w(),l(``),(_||g||s.LOG_LEVEL===`debug`)&&(l(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),l(``),x(`Command path: completions / bash / config
7
7
 
8
8
  Options:
9
- `)),t.help?T():c(`completions/bash/config`,[`completions`,`bash`,`config`],[],N)}export{P as handler};
9
+ `)),t.help?D():c(`completions/bash/config`,[`completions`,`bash`,`config`],[],N)}export{P as handler};
@@ -1,9 +1,9 @@
1
- import{B as e,E as t,F as n,G as r,H as i,I as a,J as o,K as s,M as c,O as l,P as u,R as d,T as f,V as p,W as m,X as h,Z as g,a as _,g as v,o as y,u as b,w as x}from"./prompts-BO1_kAkC.mjs";import{t as S}from"./upgrade-D7LbxJ-i.mjs";import{n as C,t as w}from"./shared-6FTnkwEI.mjs";import{t as T}from"./script-DKzNu_a1.mjs";import{writeFile as E}from"node:fs/promises";async function D(t=500){if(r().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||a)return;r().set(`banner`,!0),c(``),c(y.banner.outline.primary(`┏`)+y.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+y.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-36,0)))+y.banner.outline.primary(`┓`),{consoleFn:console.log});let i=[`Command-Line Interface`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?``:`\n${i.join(`
2
- `)}\n`,Math.max(u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(`Completions - Bash Script`).length+2))/2),0))+_(l.banner.command.primary(`Completions - Bash Script`))+` `.repeat(Math.max(Math.ceil((u().columns-(f(`Completions - Bash Script`).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),x(_(l.banner.description.primary(`Generate a bash completion script for the command-line interface.`)),Math.max(60>u().columns/2?u().columns-6:u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(u().columns-2,0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),c(y.banner.outline.primary(`┗`)+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-35,0)))+` `+_(l.banner.footer.primary(`https://stormsoftware.com`))+` `+y.banner.outline.primary(`━`.repeat(6))+y.banner.outline.primary(`┛`),{consoleFn:console.log}),c(``),n&&!p()&&await d(t)}async function O(e={},n=`./cli-completions.bash`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.bash`:n;await E(e,`# Bash script to add completions for Command Line Interface\n\n${w}`),t(`Command Line Interface Bash completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`# Bash completion for Command Line Interface`),c(``),C.split(`
1
+ import{B as e,E as t,F as n,G as r,H as i,I as a,J as o,K as s,M as c,O as l,P as u,R as d,T as f,V as p,W as m,X as h,Z as g,a as _,g as v,o as y,u as b,w as x}from"./prompts-Rsqng44G.mjs";import{t as S}from"./upgrade-CbOYYUL8.mjs";import{t as C}from"./script-CA2uVVUu.mjs";import{n as w,t as T}from"./shared-BUzfvq3v.mjs";import{writeFile as E}from"node:fs/promises";async function D(t=500){if(r().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||a)return;r().set(`banner`,!0),c(``),c(y.banner.outline.primary(`┏`)+y.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+y.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-38,0)))+y.banner.outline.primary(`┓`),{consoleFn:console.log});let i=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?`Powerlines`:`\n${i.join(`
2
+ `)}\n`,Math.max(u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(`Completions - Bash Script`).length+2))/2),0))+_(l.banner.command.primary(`Completions - Bash Script`))+` `.repeat(Math.max(Math.ceil((u().columns-(f(`Completions - Bash Script`).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),x(_(l.banner.description.primary(`Generate a bash completion script for the Powerlines command-line interface.`)),Math.max(60>u().columns/2?u().columns-6:u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(u().columns-2,0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),c(y.banner.outline.primary(`┗`)+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-35,0)))+` `+_(l.banner.footer.primary(`https://stormsoftware.com`))+` `+y.banner.outline.primary(`━`.repeat(6))+y.banner.outline.primary(`┛`),{consoleFn:console.log}),c(``),n&&!p()&&await d(t)}async function O(e={},n=`./powerlines-completions.bash`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.bash`:n;await E(e,`# Bash script to add completions for Powerlines\n\n${T}`),t(`Powerlines Bash completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`# Bash completion for Powerlines`),c(``),w.split(`
3
3
  `).map(e=>c(e)),c(``),c(` ------------------------------------------------- `),c(``),v(`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 k(e=i()){let t={...m()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await D(),await S(),c(``),(g||h||o.LOG_LEVEL===`debug`)&&(c(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),c(``),b(`Command path: completions / bash / script
7
7
 
8
8
  Options:
9
- `)),t.help?T():s(`completions/bash/script`,[`completions`,`bash`,`script`],[],O)}export{k as handler};
9
+ `)),t.help?C():s(`completions/bash/script`,[`completions`,`bash`,`script`],[],O)}export{k as handler};
@@ -1,9 +1,9 @@
1
- import{A as e,B as t,E as n,F as r,G as i,H as a,I as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,V as m,W as h,X as g,Z as _,a as v,g as y,o as b,u as x,v as S,w as C}from"./prompts-BO1_kAkC.mjs";import{t as w}from"./upgrade-D7LbxJ-i.mjs";import{t as T}from"./config-CHoghPrR.mjs";import{n as E,t as D}from"./shared-C7IWiq-2.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(e=500){if(i().get(`banner`)||t(`no-banner`)||t(`hide-banner`)||o)return;i().set(`banner`,!0),l(``),l(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=[`Command-Line Interface`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?``:`\n${n.join(`
2
- `)}\n`,Math.max(d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(`Completions - Fish Configuration`).length+2))/2),0))+v(u.banner.command.primary(`Completions - Fish Configuration`))+` `.repeat(Math.max(Math.ceil((d().columns-(p(`Completions - Fish Configuration`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),C(v(u.banner.description.primary(`Update the current system's Fish shell configuration to include completions for the command-line interface.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),l(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-35,0)))+` `+v(u.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),l(``),r&&!m()&&await f(e)}async function N(t={},r=`~/.config/fish/config.fish`){if(t.display!==!0){let t=r.includes(`.`)?r:k(r,`.config`,`fish`,`config.fish`);t.startsWith(`~`)&&(t=k(O.homedir(),t.replace(`~`,``)));let i=``;try{i=await A(t,`utf8`)}catch(n){if(typeof n==`object`&&n&&`code`in n&&n.code===`ENOENT`)e(`Configuration file ${v(t)} does not exist. It will be created when the completion script is written.`);else return{error:n}}await j(t,`${i}\n\n### Begin - Command Line Interface Fish Completions ###\n\n${D} \n\n### End - Command Line Interface Fish Completions ###`),n(`Command Line Interface shell completions have been applied to Fish configuration file at ${v(t)}. Please restart your terminal or run ${S(`source ${t}`)} for the changes to take effect.`)}else l(` ------------------------------------------------- `),l(``),l(`### Begin - Command Line Interface Fish Completions ###`),l(``),E.split(`
3
- `).map(e=>l(e)),l(``),l(`### End - Command Line Interface Fish Completions ###`),l(``),l(` ------------------------------------------------- `),l(``),y(`To enable these completions, perform one of the following actions:
1
+ import{A as e,B as t,E as n,F as r,G as i,H as a,I as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,V as m,W as h,X as g,Z as _,a as v,g as y,o as b,u as x,v as S,w as C}from"./prompts-Rsqng44G.mjs";import{t as w}from"./upgrade-CbOYYUL8.mjs";import{n as T,t as E}from"./shared-BsePrzLP.mjs";import{t as D}from"./config-Cgy-77bf.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(e=500){if(i().get(`banner`)||t(`no-banner`)||t(`hide-banner`)||o)return;i().set(`banner`,!0),l(``),l(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?`Powerlines`:`\n${n.join(`
2
+ `)}\n`,Math.max(d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(`Completions - Fish Configuration`).length+2))/2),0))+v(u.banner.command.primary(`Completions - Fish Configuration`))+` `.repeat(Math.max(Math.ceil((d().columns-(p(`Completions - Fish Configuration`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),C(v(u.banner.description.primary(`Update the current system's Fish shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),l(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-35,0)))+` `+v(u.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),l(``),r&&!m()&&await f(e)}async function N(t={},r=`~/.config/fish/config.fish`){if(t.display!==!0){let t=r.includes(`.`)?r:k(r,`.config`,`fish`,`config.fish`);t.startsWith(`~`)&&(t=k(O.homedir(),t.replace(`~`,``)));let i=``;try{i=await A(t,`utf8`)}catch(n){if(typeof n==`object`&&n&&`code`in n&&n.code===`ENOENT`)e(`Configuration file ${v(t)} does not exist. It will be created when the completion script is written.`);else return{error:n}}await j(t,`${i}\n\n### Begin - Powerlines Fish Completions ###\n\n${E} \n\n### End - Powerlines Fish Completions ###`),n(`Powerlines shell completions have been applied to Fish configuration file at ${v(t)}. Please restart your terminal or run ${S(`source ${t}`)} for the changes to take effect.`)}else l(` ------------------------------------------------- `),l(``),l(`### Begin - Powerlines Fish Completions ###`),l(``),T.split(`
3
+ `).map(e=>l(e)),l(``),l(`### End - Powerlines Fish Completions ###`),l(``),l(` ------------------------------------------------- `),l(``),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 P(e=a()){let t={...h()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await M(),await w(),l(``),(_||g||s.LOG_LEVEL===`debug`)&&(l(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),l(``),x(`Command path: completions / fish / config
7
7
 
8
8
  Options:
9
- `)),t.help?T():c(`completions/fish/config`,[`completions`,`fish`,`config`],[],N)}export{P as handler};
9
+ `)),t.help?D():c(`completions/fish/config`,[`completions`,`fish`,`config`],[],N)}export{P as handler};
@@ -1,9 +1,9 @@
1
- import{B as e,E as t,F as n,G as r,H as i,I as a,J as o,K as s,M as c,O as l,P as u,R as d,T as f,V as p,W as m,X as h,Z as g,a as _,g as v,o as y,u as b,w as x}from"./prompts-BO1_kAkC.mjs";import{t as S}from"./upgrade-D7LbxJ-i.mjs";import{n as C,t as w}from"./shared-C7IWiq-2.mjs";import{t as T}from"./script-DNHmJ5AE.mjs";import{writeFile as E}from"node:fs/promises";async function D(t=500){if(r().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||a)return;r().set(`banner`,!0),c(``),c(y.banner.outline.primary(`┏`)+y.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+y.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-36,0)))+y.banner.outline.primary(`┓`),{consoleFn:console.log});let i=[`Command-Line Interface`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?``:`\n${i.join(`
2
- `)}\n`,Math.max(u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(`Completions - Fish Script`).length+2))/2),0))+_(l.banner.command.primary(`Completions - Fish Script`))+` `.repeat(Math.max(Math.ceil((u().columns-(f(`Completions - Fish Script`).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),x(_(l.banner.description.primary(`Generate a Fish completion script for the command-line interface.`)),Math.max(60>u().columns/2?u().columns-6:u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(u().columns-2,0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),c(y.banner.outline.primary(`┗`)+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-35,0)))+` `+_(l.banner.footer.primary(`https://stormsoftware.com`))+` `+y.banner.outline.primary(`━`.repeat(6))+y.banner.outline.primary(`┛`),{consoleFn:console.log}),c(``),n&&!p()&&await d(t)}async function O(e={},n=`./cli-completions.fish`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.fish`:n;await E(e,`# Fish script to add completions for Command Line Interface\n\n${w}`),t(`Command Line Interface Fish completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`# Fish completion for Command Line Interface`),c(``),C.split(`
1
+ import{B as e,E as t,F as n,G as r,H as i,I as a,J as o,K as s,M as c,O as l,P as u,R as d,T as f,V as p,W as m,X as h,Z as g,a as _,g as v,o as y,u as b,w as x}from"./prompts-Rsqng44G.mjs";import{t as S}from"./upgrade-CbOYYUL8.mjs";import{t as C}from"./script-BH-9NBWs.mjs";import{n as w,t as T}from"./shared-BsePrzLP.mjs";import{writeFile as E}from"node:fs/promises";async function D(t=500){if(r().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||a)return;r().set(`banner`,!0),c(``),c(y.banner.outline.primary(`┏`)+y.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+y.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-38,0)))+y.banner.outline.primary(`┓`),{consoleFn:console.log});let i=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?`Powerlines`:`\n${i.join(`
2
+ `)}\n`,Math.max(u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(`Completions - Fish Script`).length+2))/2),0))+_(l.banner.command.primary(`Completions - Fish Script`))+` `.repeat(Math.max(Math.ceil((u().columns-(f(`Completions - Fish Script`).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),x(_(l.banner.description.primary(`Generate a Fish completion script for the Powerlines command-line interface.`)),Math.max(60>u().columns/2?u().columns-6:u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(u().columns-2,0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),c(y.banner.outline.primary(`┗`)+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-35,0)))+` `+_(l.banner.footer.primary(`https://stormsoftware.com`))+` `+y.banner.outline.primary(`━`.repeat(6))+y.banner.outline.primary(`┛`),{consoleFn:console.log}),c(``),n&&!p()&&await d(t)}async function O(e={},n=`./powerlines-completions.fish`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.fish`:n;await E(e,`# Fish script to add completions for Powerlines\n\n${T}`),t(`Powerlines Fish completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`# Fish completion for Powerlines`),c(``),w.split(`
3
3
  `).map(e=>c(e)),c(``),c(` ------------------------------------------------- `),c(``),v(`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 k(e=i()){let t={...m()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await D(),await S(),c(``),(g||h||o.LOG_LEVEL===`debug`)&&(c(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),c(``),b(`Command path: completions / fish / script
7
7
 
8
8
  Options:
9
- `)),t.help?T():s(`completions/fish/script`,[`completions`,`fish`,`script`],[],O)}export{k as handler};
9
+ `)),t.help?C():s(`completions/fish/script`,[`completions`,`fish`,`script`],[],O)}export{k as handler};
@@ -1,9 +1,9 @@
1
- import{A as e,B as t,E as n,F as r,G as i,H as a,I as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,V as m,W as h,X as g,Z as _,a as v,g as y,o as b,u as x,v as S,w as C}from"./prompts-BO1_kAkC.mjs";import{t as w}from"./upgrade-D7LbxJ-i.mjs";import{t as T}from"./config-DVkCUl-v.mjs";import{n as E,t as D}from"./shared-e9pqDaa3.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(e=500){if(i().get(`banner`)||t(`no-banner`)||t(`hide-banner`)||o)return;i().set(`banner`,!0),l(``),l(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=[`Command-Line Interface`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?``:`\n${n.join(`
2
- `)}\n`,Math.max(d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(`Completions - PowerShell Configuration`).length+2))/2),0))+v(u.banner.command.primary(`Completions - PowerShell Configuration`))+` `.repeat(Math.max(Math.ceil((d().columns-(p(`Completions - PowerShell Configuration`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),C(v(u.banner.description.primary(`Update the current system's PowerShell configuration to include completions for the command-line interface.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),l(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-35,0)))+` `+v(u.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),l(``),r&&!m()&&await f(e)}async function N(t={},r=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`){if(t.display!==!0){let t=r.includes(`.`)?r:k(r,`Microsoft.PowerShell_profile.ps1`);t.startsWith(`~`)&&(t=k(O.homedir(),t.replace(`~`,``)));let i=``;try{i=await A(t,`utf8`)}catch(n){if(typeof n==`object`&&n&&`code`in n&&n.code===`ENOENT`)e(`Configuration file ${v(t)} does not exist. It will be created when the completion script is written.`);else return{error:n}}await j(t,`${i}\n\n### Begin - Command Line Interface PowerShell Completions ###\n\n${D} \n\n### End - Command Line Interface PowerShell Completions ###`),n(`Command Line Interface shell completions have been applied to PowerShell configuration file at ${v(t)}. Please restart your terminal or run ${S(`source ${t}`)} for the changes to take effect.`)}else l(` ------------------------------------------------- `),l(``),l(`### Begin - Command Line Interface PowerShell Completions ###`),l(``),E.split(`
3
- `).map(e=>l(e)),l(``),l(`### End - Command Line Interface PowerShell Completions ###`),l(``),l(` ------------------------------------------------- `),l(``),y(`To enable these completions, perform one of the following actions:
1
+ import{A as e,B as t,E as n,F as r,G as i,H as a,I as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,V as m,W as h,X as g,Z as _,a as v,g as y,o as b,u as x,v as S,w as C}from"./prompts-Rsqng44G.mjs";import{t as w}from"./upgrade-CbOYYUL8.mjs";import{n as T,t as E}from"./shared-CJXquqHR.mjs";import{t as D}from"./config-CBOLGGRN.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(e=500){if(i().get(`banner`)||t(`no-banner`)||t(`hide-banner`)||o)return;i().set(`banner`,!0),l(``),l(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?`Powerlines`:`\n${n.join(`
2
+ `)}\n`,Math.max(d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(`Completions - PowerShell Configuration`).length+2))/2),0))+v(u.banner.command.primary(`Completions - PowerShell Configuration`))+` `.repeat(Math.max(Math.ceil((d().columns-(p(`Completions - PowerShell Configuration`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),C(v(u.banner.description.primary(`Update the current system's PowerShell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),l(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-35,0)))+` `+v(u.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),l(``),r&&!m()&&await f(e)}async function N(t={},r=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`){if(t.display!==!0){let t=r.includes(`.`)?r:k(r,`Microsoft.PowerShell_profile.ps1`);t.startsWith(`~`)&&(t=k(O.homedir(),t.replace(`~`,``)));let i=``;try{i=await A(t,`utf8`)}catch(n){if(typeof n==`object`&&n&&`code`in n&&n.code===`ENOENT`)e(`Configuration file ${v(t)} does not exist. It will be created when the completion script is written.`);else return{error:n}}await j(t,`${i}\n\n### Begin - Powerlines PowerShell Completions ###\n\n${E} \n\n### End - Powerlines PowerShell Completions ###`),n(`Powerlines shell completions have been applied to PowerShell configuration file at ${v(t)}. Please restart your terminal or run ${S(`source ${t}`)} for the changes to take effect.`)}else l(` ------------------------------------------------- `),l(``),l(`### Begin - Powerlines PowerShell Completions ###`),l(``),T.split(`
3
+ `).map(e=>l(e)),l(``),l(`### End - Powerlines PowerShell Completions ###`),l(``),l(` ------------------------------------------------- `),l(``),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 P(e=a()){let t={...h()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await M(),await w(),l(``),(_||g||s.LOG_LEVEL===`debug`)&&(l(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),l(``),x(`Command path: completions / powershell / config
7
7
 
8
8
  Options:
9
- `)),t.help?T():c(`completions/powershell/config`,[`completions`,`powershell`,`config`],[],N)}export{P as handler};
9
+ `)),t.help?D():c(`completions/powershell/config`,[`completions`,`powershell`,`config`],[],N)}export{P as handler};
@@ -1,9 +1,9 @@
1
- import{B as e,E as t,F as n,G as r,H as i,I as a,J as o,K as s,M as c,O as l,P as u,R as d,T as f,V as p,W as m,X as h,Z as g,a as _,g as v,o as y,u as b,w as x}from"./prompts-BO1_kAkC.mjs";import{t as S}from"./upgrade-D7LbxJ-i.mjs";import{n as C,t as w}from"./shared-e9pqDaa3.mjs";import{t as T}from"./script-Dj5dsyLK.mjs";import{writeFile as E}from"node:fs/promises";async function D(t=500){if(r().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||a)return;r().set(`banner`,!0),c(``),c(y.banner.outline.primary(`┏`)+y.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+y.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-36,0)))+y.banner.outline.primary(`┓`),{consoleFn:console.log});let i=[`Command-Line Interface`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?``:`\n${i.join(`
2
- `)}\n`,Math.max(u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(`Completions - PowerShell Script`).length+2))/2),0))+_(l.banner.command.primary(`Completions - PowerShell Script`))+` `.repeat(Math.max(Math.ceil((u().columns-(f(`Completions - PowerShell Script`).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),x(_(l.banner.description.primary(`Generate a PowerShell completion script for the command-line interface.`)),Math.max(60>u().columns/2?u().columns-6:u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(u().columns-2,0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),c(y.banner.outline.primary(`┗`)+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-35,0)))+` `+_(l.banner.footer.primary(`https://stormsoftware.com`))+` `+y.banner.outline.primary(`━`.repeat(6))+y.banner.outline.primary(`┛`),{consoleFn:console.log}),c(``),n&&!p()&&await d(t)}async function O(e={},n=`./cli-completions.ps1`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.ps1`:n;await E(e,`# PowerShell script to add completions for Command Line Interface\n\n${w}`),t(`Command Line Interface PowerShell completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`# PowerShell completions for Command Line Interface`),c(``),C.split(`
1
+ import{B as e,E as t,F as n,G as r,H as i,I as a,J as o,K as s,M as c,O as l,P as u,R as d,T as f,V as p,W as m,X as h,Z as g,a as _,g as v,o as y,u as b,w as x}from"./prompts-Rsqng44G.mjs";import{t as S}from"./upgrade-CbOYYUL8.mjs";import{t as C}from"./script-DTC5wHER.mjs";import{n as w,t as T}from"./shared-CJXquqHR.mjs";import{writeFile as E}from"node:fs/promises";async function D(t=500){if(r().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||a)return;r().set(`banner`,!0),c(``),c(y.banner.outline.primary(`┏`)+y.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+y.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-38,0)))+y.banner.outline.primary(`┓`),{consoleFn:console.log});let i=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?`Powerlines`:`\n${i.join(`
2
+ `)}\n`,Math.max(u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(`Completions - PowerShell Script`).length+2))/2),0))+_(l.banner.command.primary(`Completions - PowerShell Script`))+` `.repeat(Math.max(Math.ceil((u().columns-(f(`Completions - PowerShell Script`).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),x(_(l.banner.description.primary(`Generate a PowerShell completion script for the Powerlines command-line interface.`)),Math.max(60>u().columns/2?u().columns-6:u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(u().columns-2,0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),c(y.banner.outline.primary(`┗`)+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-35,0)))+` `+_(l.banner.footer.primary(`https://stormsoftware.com`))+` `+y.banner.outline.primary(`━`.repeat(6))+y.banner.outline.primary(`┛`),{consoleFn:console.log}),c(``),n&&!p()&&await d(t)}async function O(e={},n=`./powerlines-completions.ps1`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.ps1`:n;await E(e,`# PowerShell script to add completions for Powerlines\n\n${T}`),t(`Powerlines PowerShell completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`# PowerShell completions for Powerlines`),c(``),w.split(`
3
3
  `).map(e=>c(e)),c(``),c(` ------------------------------------------------- `),c(``),v(`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 k(e=i()){let t={...m()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await D(),await S(),c(``),(g||h||o.LOG_LEVEL===`debug`)&&(c(l.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),c(``),b(`Command path: completions / powershell / script
7
7
 
8
8
  Options:
9
- `)),t.help?T():s(`completions/powershell/script`,[`completions`,`powershell`,`script`],[],O)}export{k as handler};
9
+ `)),t.help?C():s(`completions/powershell/script`,[`completions`,`powershell`,`script`],[],O)}export{k as handler};
@@ -1,6 +1,6 @@
1
- import{A as e,B as t,E as n,F as r,G as i,H as a,I as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,V as m,W as h,X as g,Z as _,a as v,g as y,o as b,u as x,v as S,w as C}from"./prompts-BO1_kAkC.mjs";import{t as w}from"./upgrade-D7LbxJ-i.mjs";import{n as T,t as E}from"./shared-Dhxn0TVd.mjs";import{t as D}from"./config-CmSSUBEW.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(e=500){if(i().get(`banner`)||t(`no-banner`)||t(`hide-banner`)||o)return;i().set(`banner`,!0),l(``),l(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-36,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=[`Command-Line Interface`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?``:`\n${n.join(`
2
- `)}\n`,Math.max(d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(`Completions - Zsh Configuration`).length+2))/2),0))+v(u.banner.command.primary(`Completions - Zsh Configuration`))+` `.repeat(Math.max(Math.ceil((d().columns-(p(`Completions - Zsh Configuration`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),C(v(u.banner.description.primary(`Update the current system's Zsh shell configuration to include completions for the command-line interface.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),l(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-35,0)))+` `+v(u.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),l(``),r&&!m()&&await f(e)}async function N(t={},r=`~/.zshrc`){if(t.display!==!0){let t=r.includes(`.`)?r:k(r,`.zshrc`);t.startsWith(`~`)&&(t=k(O.homedir(),t.replace(`~`,``)));let i=``;try{i=await A(t,`utf8`)}catch(n){if(typeof n==`object`&&n&&`code`in n&&n.code===`ENOENT`)e(`Configuration file ${v(t)} does not exist. It will be created when the completion script is written.`);else return{error:n}}await j(t,`${i}\n\n### Begin - Command Line Interface Shell Completions ###\n\n${E} \n\n### End - Command Line Interface Zsh Completions ###`),n(`Command Line Interface shell completions have been applied to Zsh configuration file at ${v(t)}. Please restart your terminal or run ${S(`source ${t}`)} for the changes to take effect.`)}else l(` ------------------------------------------------- `),l(``),l(`### Begin - Command Line Interface Zsh Completions ###`),l(``),T.split(`
3
- `).map(e=>l(e)),l(``),l(`### End - Command Line Interface Zsh Completions ###`),l(``),l(` ------------------------------------------------- `),l(``),y(`To enable these completions, perform one of the following actions:
1
+ import{A as e,B as t,E as n,F as r,G as i,H as a,I as o,J as s,K as c,M as l,O as u,P as d,R as f,T as p,V as m,W as h,X as g,Z as _,a as v,g as y,o as b,u as x,v as S,w as C}from"./prompts-Rsqng44G.mjs";import{t as w}from"./upgrade-CbOYYUL8.mjs";import{n as T,t as E}from"./shared-CgiVDHJI.mjs";import{t as D}from"./config-DN4qOrRO.mjs";import O from"node:os";import{join as k}from"node:path";import{readFile as A,writeFile as j}from"node:fs/promises";async function M(e=500){if(i().get(`banner`)||t(`no-banner`)||t(`hide-banner`)||o)return;i().set(`banner`,!0),l(``),l(b.banner.outline.primary(`┏`)+b.banner.outline.primary(`━`.repeat(6))+` `+u.banner.header.primary(`⬤`)+` `+b.banner.outline.primary(`━`)+` `+v(u.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-38,0)))+b.banner.outline.primary(`┓`),{consoleFn:console.log});let n=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?`Powerlines`:`\n${n.join(`
2
+ `)}\n`,Math.max(d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+v(u.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(`Completions - Zsh Configuration`).length+2))/2),0))+v(u.banner.command.primary(`Completions - Zsh Configuration`))+` `.repeat(Math.max(Math.ceil((d().columns-(p(`Completions - Zsh Configuration`).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),C(v(u.banner.description.primary(`Update the current system's Zsh shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>d().columns/2?d().columns-6:d().columns-30,20)).forEach(e=>{l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((d().columns-(p(e).length+2))/2),0))+u.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((d().columns-(p(e).length+2))/2),0))+b.banner.outline.primary(`┃`),{consoleFn:console.log})}),l(b.banner.outline.primary(`┃`)+` `.repeat(Math.max(d().columns-2,0))+b.banner.outline.primary(`┃`),{consoleFn:console.log}),l(b.banner.outline.primary(`┗`)+b.banner.outline.primary(`━`.repeat(Math.max(d().columns-35,0)))+` `+v(u.banner.footer.primary(`https://stormsoftware.com`))+` `+b.banner.outline.primary(`━`.repeat(6))+b.banner.outline.primary(`┛`),{consoleFn:console.log}),l(``),r&&!m()&&await f(e)}async function N(t={},r=`~/.zshrc`){if(t.display!==!0){let t=r.includes(`.`)?r:k(r,`.zshrc`);t.startsWith(`~`)&&(t=k(O.homedir(),t.replace(`~`,``)));let i=``;try{i=await A(t,`utf8`)}catch(n){if(typeof n==`object`&&n&&`code`in n&&n.code===`ENOENT`)e(`Configuration file ${v(t)} does not exist. It will be created when the completion script is written.`);else return{error:n}}await j(t,`${i}\n\n### Begin - Powerlines Shell Completions ###\n\n${E} \n\n### End - Powerlines Zsh Completions ###`),n(`Powerlines shell completions have been applied to Zsh configuration file at ${v(t)}. Please restart your terminal or run ${S(`source ${t}`)} for the changes to take effect.`)}else l(` ------------------------------------------------- `),l(``),l(`### Begin - Powerlines Zsh Completions ###`),l(``),T.split(`
3
+ `).map(e=>l(e)),l(``),l(`### End - Powerlines Zsh Completions ###`),l(``),l(` ------------------------------------------------- `),l(``),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/zsh/.zshrc)
6
6
  2) Save the above script to a file and source it from your shell configuration file `)}async function P(e=a()){let t={...h()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await M(),await w(),l(``),(_||g||s.LOG_LEVEL===`debug`)&&(l(u.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),l(``),x(`Command path: completions / zsh / config
@@ -1,5 +1,5 @@
1
- import{B as e,E as t,F as n,G as r,H as i,I as a,J as o,K as s,M as c,O as l,P as u,R as d,T as f,V as p,W as m,X as h,Z as g,a as _,g as v,o as y,u as b,w as x}from"./prompts-BO1_kAkC.mjs";import{t as S}from"./upgrade-D7LbxJ-i.mjs";import{t as C}from"./script-DLuJ6_sY.mjs";import{n as w,t as T}from"./shared-Dhxn0TVd.mjs";import{writeFile as E}from"node:fs/promises";async function D(t=500){if(r().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||a)return;r().set(`banner`,!0),c(``),c(y.banner.outline.primary(`┏`)+y.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+y.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-36,0)))+y.banner.outline.primary(`┓`),{consoleFn:console.log});let i=[`Command-Line Interface`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?``:`\n${i.join(`
2
- `)}\n`,Math.max(u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(`Completions - Zsh Script`).length+2))/2),0))+_(l.banner.command.primary(`Completions - Zsh Script`))+` `.repeat(Math.max(Math.ceil((u().columns-(f(`Completions - Zsh Script`).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),x(_(l.banner.description.primary(`Generate a Zsh completion script for the command-line interface.`)),Math.max(60>u().columns/2?u().columns-6:u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(u().columns-2,0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),c(y.banner.outline.primary(`┗`)+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-35,0)))+` `+_(l.banner.footer.primary(`https://stormsoftware.com`))+` `+y.banner.outline.primary(`━`.repeat(6))+y.banner.outline.primary(`┛`),{consoleFn:console.log}),c(``),n&&!p()&&await d(t)}async function O(e={},n=`cli-completions.zsh`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.zsh`:n;await E(e,`# Zsh script to add completions for Command Line Interface\n\n${T}`),t(`Command Line Interface Zsh completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`#compdef cli `),c(`#compdef _cli cli`),c(``),c(`# Zsh completion for Command Line Interface`),c(``),w.split(`
1
+ import{B as e,E as t,F as n,G as r,H as i,I as a,J as o,K as s,M as c,O as l,P as u,R as d,T as f,V as p,W as m,X as h,Z as g,a as _,g as v,o as y,u as b,w as x}from"./prompts-Rsqng44G.mjs";import{t as S}from"./upgrade-CbOYYUL8.mjs";import{t as C}from"./script-DhtPxvAu.mjs";import{n as w,t as T}from"./shared-CgiVDHJI.mjs";import{writeFile as E}from"node:fs/promises";async function D(t=500){if(r().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||a)return;r().set(`banner`,!0),c(``),c(y.banner.outline.primary(`┏`)+y.banner.outline.primary(`━`.repeat(6))+` `+l.banner.header.primary(`⬤`)+` `+y.banner.outline.primary(`━`)+` `+_(l.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-38,0)))+y.banner.outline.primary(`┓`),{consoleFn:console.log});let i=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?`Powerlines`:`\n${i.join(`
2
+ `)}\n`,Math.max(u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+_(l.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(`Completions - Zsh Script`).length+2))/2),0))+_(l.banner.command.primary(`Completions - Zsh Script`))+` `.repeat(Math.max(Math.ceil((u().columns-(f(`Completions - Zsh Script`).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),x(_(l.banner.description.primary(`Generate a Zsh completion script for the Powerlines command-line interface.`)),Math.max(60>u().columns/2?u().columns-6:u().columns-30,20)).forEach(e=>{c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((u().columns-(f(e).length+2))/2),0))+l.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((u().columns-(f(e).length+2))/2),0))+y.banner.outline.primary(`┃`),{consoleFn:console.log})}),c(y.banner.outline.primary(`┃`)+` `.repeat(Math.max(u().columns-2,0))+y.banner.outline.primary(`┃`),{consoleFn:console.log}),c(y.banner.outline.primary(`┗`)+y.banner.outline.primary(`━`.repeat(Math.max(u().columns-35,0)))+` `+_(l.banner.footer.primary(`https://stormsoftware.com`))+` `+y.banner.outline.primary(`━`.repeat(6))+y.banner.outline.primary(`┛`),{consoleFn:console.log}),c(``),n&&!p()&&await d(t)}async function O(e={},n=`powerlines-completions.zsh`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.zsh`:n;await E(e,`# Zsh script to add completions for Powerlines\n\n${T}`),t(`Powerlines Zsh completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`#compdef powerlines `),c(`#compdef _powerlines powerlines`),c(``),c(`# Zsh completion for Powerlines`),c(``),w.split(`
3
3
  `).map(e=>c(e)),c(``),c(` ------------------------------------------------- `),c(``),v(`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/zsh/.zshrc)
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`completions`)} ${t.usage.command(`powershell`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`completions`)} ${t.usage.command(`fish`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`completions`)} ${t.usage.command(`bash`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`create`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -0,0 +1 @@
1
+ import{createPowerlines as e}from"powerlines/engine";var t=`0.47.125`;async function n(n){let r=await e(n);return r.context.info(`🔌 Powerlines Engine v${t||`1.0.0`} is running...`),r}export{n as t};
package/bin/create.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-BO1_kAkC.mjs";import{t as b}from"./upgrade-D7LbxJ-i.mjs";import{t as x}from"./create-powerlines-DeMZsc3_.mjs";import{t as S}from"./create-NSNAgFJY.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./create-T3P6LNng.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Create Project`).length+2))/2),0))+g(c.banner.command.primary(`Create Project`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Create Project`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Create a new Powerlines project.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}async function w(e){await(await x(e)).create(e)}async function T(e=r()){let t={...p()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await C(),await b(),s(``),(h||m||a.LOG_LEVEL===`debug`)&&(s(c.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),s(``),v(`Command path: create
3
3
 
4
4
  Options:
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`deploy`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/deploy.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-BO1_kAkC.mjs";import{t as b}from"./upgrade-D7LbxJ-i.mjs";import{t as x}from"./create-powerlines-DeMZsc3_.mjs";import{t as S}from"./deploy-ULfMjQyY.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./deploy-DRvDq2cP.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Deploy`).length+2))/2),0))+g(c.banner.command.primary(`Deploy`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Deploy`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Deploys the project and its generated assets/artifacts.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}async function w(e){await(await x(e)).deploy(e)}async function T(e=r()){let t={...p()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await C(),await b(),s(``),(h||m||a.LOG_LEVEL===`debug`)&&(s(c.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),s(``),v(`Command path: deploy
3
3
 
4
4
  Options:
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`docs`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/docs.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-BO1_kAkC.mjs";import{t as b}from"./upgrade-D7LbxJ-i.mjs";import{t as x}from"./create-powerlines-DeMZsc3_.mjs";import{t as S}from"./docs-BchaiW6S.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./docs-M1aA2x15.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Generate Documentation`).length+2))/2),0))+g(c.banner.command.primary(`Generate Documentation`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Generate Documentation`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Generate documentation for the project's source code.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}async function w(e){await(await x(e)).docs(e)}async function T(e=r()){let t={...p()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await C(),await b(),s(``),(h||m||a.LOG_LEVEL===`debug`)&&(s(c.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),s(``),v(`Command path: docs
3
3
 
4
4
  Options:
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`gc`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};