powerlines 0.47.125 → 0.47.126

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 (52) hide show
  1. package/bin/bin.mjs +7 -7
  2. package/bin/{build-DLpROs1Y.mjs → build-CJIAgNA5.mjs} +1 -1
  3. package/bin/build.mjs +1 -1
  4. package/bin/{changelog-BRROp0c_.mjs → changelog-d-cmenYB.mjs} +1 -1
  5. package/bin/changelog.mjs +7 -1
  6. package/bin/{clean-BK0v29iM.mjs → clean-dutxbMO3.mjs} +1 -1
  7. package/bin/clean.mjs +1 -1
  8. package/bin/completions-bash-config.mjs +1 -1
  9. package/bin/completions-bash-script.mjs +1 -1
  10. package/bin/completions-fish-config.mjs +1 -1
  11. package/bin/completions-fish-script.mjs +1 -1
  12. package/bin/completions-powershell-config.mjs +3 -3
  13. package/bin/completions-powershell-script.mjs +3 -3
  14. package/bin/completions-zsh-config.mjs +1 -1
  15. package/bin/completions-zsh-script.mjs +1 -1
  16. package/bin/{config-CY1Qq9ZH.mjs → config-B0hTZO6E.mjs} +1 -1
  17. package/bin/{config-DVkCUl-v.mjs → config-BJFVoVkf.mjs} +1 -1
  18. package/bin/{config-CHoghPrR.mjs → config-BaNVYrnl.mjs} +1 -1
  19. package/bin/{config-CmSSUBEW.mjs → config-Bf2LnULJ.mjs} +1 -1
  20. package/bin/{create-NSNAgFJY.mjs → create-DYKxyvzg.mjs} +1 -1
  21. package/bin/create-powerlines-DvusHjN3.mjs +1 -0
  22. package/bin/create.mjs +1 -1
  23. package/bin/{deploy-ULfMjQyY.mjs → deploy-BMhOgvx4.mjs} +1 -1
  24. package/bin/deploy.mjs +1 -1
  25. package/bin/{docs-BchaiW6S.mjs → docs-CAUeTrLz.mjs} +1 -1
  26. package/bin/docs.mjs +1 -1
  27. package/bin/{gc-D7LfDJqD.mjs → gc-DZjHvUuc.mjs} +1 -1
  28. package/bin/gc.mjs +1 -1
  29. package/bin/help.mjs +2 -2
  30. package/bin/{lint-DgwBwH7Y.mjs → lint-DdDmoyDN.mjs} +1 -1
  31. package/bin/lint.mjs +1 -1
  32. package/bin/{prepare-BIckwpx0.mjs → prepare-Yz_6EWzB.mjs} +1 -1
  33. package/bin/prepare.mjs +3 -3
  34. package/bin/{prompts-BO1_kAkC.mjs → prompts-BnlPjHFR.mjs} +1 -1
  35. package/bin/{script-DKzNu_a1.mjs → script-B97oHT_M.mjs} +1 -1
  36. package/bin/{script-Dj5dsyLK.mjs → script-Bn4yCHJR.mjs} +1 -1
  37. package/bin/{script-DLuJ6_sY.mjs → script-DGDOPq0P.mjs} +1 -1
  38. package/bin/{script-DNHmJ5AE.mjs → script-Di-8LIT0.mjs} +1 -1
  39. package/bin/{shared-C7IWiq-2.mjs → shared-BiFPKQIb.mjs} +1 -1
  40. package/bin/{shared-Dhxn0TVd.mjs → shared-CLQvIZ7z.mjs} +1 -1
  41. package/bin/{shared-e9pqDaa3.mjs → shared-ClfTGQiY.mjs} +1 -1
  42. package/bin/{shared-6FTnkwEI.mjs → shared-D6Uc3liR.mjs} +1 -1
  43. package/bin/{types-Cj1dBpbF.mjs → types-BhiTsmcq.mjs} +1 -1
  44. package/bin/types.mjs +3 -3
  45. package/bin/{upgrade-DoVBmRQU.mjs → upgrade-aCJAI3aA.mjs} +1 -1
  46. package/bin/{upgrade-D7LbxJ-i.mjs → upgrade-yP6Jdrm0.mjs} +1 -1
  47. package/bin/upgrade.mjs +1 -1
  48. package/bin/{zsh-CT9O9pWB.mjs → zsh-Cve0Syog.mjs} +2 -2
  49. package/dist/package.cjs +1 -1
  50. package/dist/package.mjs +1 -1
  51. package/package.json +6 -6
  52. package/bin/create-powerlines-DeMZsc3_.mjs +0 -1
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-BnlPjHFR.mjs";import{a as T,i as E,n as D,o as O,r as k,t as A}from"./zsh-Cve0Syog.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=[`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.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,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.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,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.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,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.47.125`))+` `+b.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,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(`_`,``)===`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:`(cli completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cli 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=[`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(`_`,``)===`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:`(cli completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(cli completions zsh config)`,icon:`🖵`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cli completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cli completions powershell config)`,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:`🖵`}]});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 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.47.125`);return}let n=r(),i=``;if(n.length>2&&n[2]&&(i=n[2]),!i.startsWith(`-`)){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(`_`,``)===`types`)return(await import(`./types.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,[`prepare`,`lint`,`gc`,`prune`,`garbage-collection`,`docs`,`deploy`,`deployment`,`publish`,`create`,`clean`,`build`,`types`,`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:[`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:[`types`],label:`Generate Typescript Declaration File`,description:`(cli types)`,icon:`🖹`},{value:[`changelog`],label:`Changelog`,description:`(cli changelog)`,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:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(cli completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(cli completions powershell config)`,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:[`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(`_`,``)===`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(`_`,``)===`types`)return(await import(`./types.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,[`prepare`,`lint`,`gc`,`prune`,`garbage-collection`,`docs`,`deploy`,`deployment`,`publish`,`create`,`clean`,`build`,`types`,`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};
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`build`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${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-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./build-CJIAgNA5.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=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\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:
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`changelog`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${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(`
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-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./changelog-d-cmenYB.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=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\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(`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]")`)}
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`))}
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`clean`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${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-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./clean-dutxbMO3.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=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\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,4 +1,4 @@
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(`
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-BnlPjHFR.mjs";import{t as w}from"./upgrade-yP6Jdrm0.mjs";import{t as T}from"./config-B0hTZO6E.mjs";import{n as E,t as D}from"./shared-D6Uc3liR.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=[`Command-Line Interface`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?``:`\n${n.join(`
2
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
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:
4
4
 
@@ -1,4 +1,4 @@
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(`
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-BnlPjHFR.mjs";import{t as S}from"./upgrade-yP6Jdrm0.mjs";import{n as C,t as w}from"./shared-D6Uc3liR.mjs";import{t as T}from"./script-B97oHT_M.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=[`Command-Line Interface`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?``:`\n${i.join(`
2
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(`
3
3
  `).map(e=>c(e)),c(``),c(` ------------------------------------------------- `),c(``),v(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1,4 +1,4 @@
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(`
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-BnlPjHFR.mjs";import{t as w}from"./upgrade-yP6Jdrm0.mjs";import{t as T}from"./config-BaNVYrnl.mjs";import{n as E,t as D}from"./shared-BiFPKQIb.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=[`Command-Line Interface`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?``:`\n${n.join(`
2
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
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:
4
4
 
@@ -1,4 +1,4 @@
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(`
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-BnlPjHFR.mjs";import{t as S}from"./upgrade-yP6Jdrm0.mjs";import{n as C,t as w}from"./shared-BiFPKQIb.mjs";import{t as T}from"./script-Di-8LIT0.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=[`Command-Line Interface`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?``:`\n${i.join(`
2
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(`
3
3
  `).map(e=>c(e)),c(``),c(` ------------------------------------------------- `),c(``),v(`To enable these completions, perform one of the following actions:
4
4
 
@@ -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(`
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-BnlPjHFR.mjs";import{t as w}from"./upgrade-yP6Jdrm0.mjs";import{n as T,t as E}from"./shared-ClfTGQiY.mjs";import{t as D}from"./config-BJFVoVkf.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=[`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${E} \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(``),T.split(`
3
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:
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-BnlPjHFR.mjs";import{t as S}from"./upgrade-yP6Jdrm0.mjs";import{t as C}from"./script-Bn4yCHJR.mjs";import{n as w,t as T}from"./shared-ClfTGQiY.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=[`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${T}`),t(`Command Line Interface PowerShell completion script has been generated at ${_(e)}.`)}else c(` ------------------------------------------------- `),c(``),c(`# PowerShell completions for Command Line Interface`),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,4 +1,4 @@
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(`
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-BnlPjHFR.mjs";import{t as w}from"./upgrade-yP6Jdrm0.mjs";import{n as T,t as E}from"./shared-CLQvIZ7z.mjs";import{t as D}from"./config-Bf2LnULJ.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=[`Command-Line Interface`];C(Math.max(...n.map(e=>p(e).length))>Math.max(d().columns+30,20)?``:`\n${n.join(`
2
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
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:
4
4
 
@@ -1,4 +1,4 @@
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(`
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-BnlPjHFR.mjs";import{t as S}from"./upgrade-yP6Jdrm0.mjs";import{t as C}from"./script-DGDOPq0P.mjs";import{n as w,t as T}from"./shared-CLQvIZ7z.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=[`Command-Line Interface`];x(Math.max(...i.map(e=>f(e).length))>Math.max(u().columns+30,20)?``:`\n${i.join(`
2
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(`
3
3
  `).map(e=>c(e)),c(``),c(` ------------------------------------------------- `),c(``),v(`To enable these completions, perform one of the following actions:
4
4
 
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`completions`)} ${t.usage.command(`bash`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`completions`)} ${t.usage.command(`bash`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`completions`)} ${t.usage.command(`powershell`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`completions`)} ${t.usage.command(`powershell`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`completions`)} ${t.usage.command(`fish`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`completions`)} ${t.usage.command(`fish`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`completions`)} ${t.usage.command(`zsh`)} ${t.usage.command(`config`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`create`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${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-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./create-DYKxyvzg.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=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\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:
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`deploy`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${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-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./deploy-BMhOgvx4.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=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\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:
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`docs`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${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-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./docs-CAUeTrLz.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=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\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:
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`gc`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`gc`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/gc.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"./gc-D7LfDJqD.mjs";import{removeDirectory as C}from"@stryke/fs";async function w(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-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./gc-DZjHvUuc.mjs";import{removeDirectory as C}from"@stryke/fs";async function w(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=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\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(`Garbage Collection`).length+2))/2),0))+g(c.banner.command.primary(`Garbage Collection`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Garbage Collection`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Perform garbage collection to clean up unnecessary system files based on the specified options. This can help free up disk space and improve system performance.
3
3
 
4
4
  Note: The actual types of environment paths available for cleanup may vary based on the project's configuration and the underlying system's operating system.`)),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 T(e={},t=`all`){let n=await x({root:process.cwd(),...e}),r=[];(t===`all`||t===`data`)&&r.push(n.context.envPaths.data),(t===`all`||t===`cache`)&&r.push(n.context.envPaths.cache),(t===`all`||t===`logs`)&&r.push(n.context.envPaths.log),(t===`all`||t===`temp`)&&r.push(n.context.envPaths.temp),await Promise.all(r.map(async e=>{await C(e)}))}async function E(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 w(),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: gc
package/bin/help.mjs CHANGED
@@ -1,5 +1,5 @@
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{a as b,i as x,n as S,o as C,r as w,t as T}from"./zsh-CT9O9pWB.mjs";import{t as E}from"./types-Cj1dBpbF.mjs";import{t as D}from"./upgrade-D7LbxJ-i.mjs";import{t as O}from"./prepare-BIckwpx0.mjs";import{t as k}from"./lint-DgwBwH7Y.mjs";import{t as A}from"./gc-D7LfDJqD.mjs";import{t as j}from"./docs-BchaiW6S.mjs";import{t as M}from"./deploy-ULfMjQyY.mjs";import{t as N}from"./create-NSNAgFJY.mjs";import{t as P}from"./clean-BK0v29iM.mjs";import{t as F}from"./build-DLpROs1Y.mjs";import{t as I}from"./changelog-BRROp0c_.mjs";import{t as L}from"./config-CY1Qq9ZH.mjs";import{t as R}from"./script-DKzNu_a1.mjs";import{t as z}from"./config-CHoghPrR.mjs";import{t as B}from"./script-DNHmJ5AE.mjs";import{t as V}from"./config-DVkCUl-v.mjs";import{t as H}from"./script-Dj5dsyLK.mjs";import{t as U}from"./script-DLuJ6_sY.mjs";import{t as W}from"./config-CmSSUBEW.mjs";import{t as G}from"./upgrade-DoVBmRQU.mjs";async function K(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(`Help`).length+2))/2),0))+g(c.banner.command.primary(`Help`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Help`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Display command usage details and other useful information to the user.`)),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 q(){s(``),s(g(c.heading.secondary(`Usage:`))),s(c.body.secondary(`${c.usage.bin(`$_ cli`)} ${c.usage.command(`help`)} ${c.usage.options(`[options]`)}`),{padding:0}),s(``)}async function J(e=[]){e.join(`/`).toLowerCase()===`build`?F():e.join(`/`).toLowerCase()===`changelog`?I():e.join(`/`).toLowerCase()===`clean`?P():e.join(`/`).toLowerCase()===`completions`?b():e.join(`/`).toLowerCase()===`completions/bash`?x():e.join(`/`).toLowerCase()===`completions/bash/config`?L():e.join(`/`).toLowerCase()===`completions/bash/script`?R():e.join(`/`).toLowerCase()===`completions/fish`?w():e.join(`/`).toLowerCase()===`completions/fish/config`?z():e.join(`/`).toLowerCase()===`completions/fish/script`?B():e.join(`/`).toLowerCase()===`completions/powershell`?S():e.join(`/`).toLowerCase()===`completions/powershell/config`?V():e.join(`/`).toLowerCase()===`completions/powershell/script`?H():e.join(`/`).toLowerCase()===`completions/zsh`?T():e.join(`/`).toLowerCase()===`completions/zsh/config`?W():e.join(`/`).toLowerCase()===`completions/zsh/script`?U():e.join(`/`).toLowerCase()===`create`?N():e.join(`/`).toLowerCase()===`deploy`?M():e.join(`/`).toLowerCase()===`docs`?j():e.join(`/`).toLowerCase()===`gc`?A():e.join(`/`).toLowerCase()===`help`?q():e.join(`/`).toLowerCase()===`lint`?k():e.join(`/`).toLowerCase()===`prepare`?O():e.join(`/`).toLowerCase()===`types`?E():e.join(`/`).toLowerCase()===`upgrade`?G():C()}async function Y(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 K(),await D(),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: help
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-BnlPjHFR.mjs";import{a as b,i as x,n as S,o as C,r as w,t as T}from"./zsh-Cve0Syog.mjs";import{t as E}from"./prepare-Yz_6EWzB.mjs";import{t as D}from"./upgrade-yP6Jdrm0.mjs";import{t as O}from"./lint-DdDmoyDN.mjs";import{t as k}from"./gc-DZjHvUuc.mjs";import{t as A}from"./docs-CAUeTrLz.mjs";import{t as j}from"./deploy-BMhOgvx4.mjs";import{t as M}from"./create-DYKxyvzg.mjs";import{t as N}from"./clean-dutxbMO3.mjs";import{t as P}from"./build-CJIAgNA5.mjs";import{t as F}from"./types-BhiTsmcq.mjs";import{t as I}from"./changelog-d-cmenYB.mjs";import{t as L}from"./script-DGDOPq0P.mjs";import{t as R}from"./config-Bf2LnULJ.mjs";import{t as z}from"./script-Bn4yCHJR.mjs";import{t as B}from"./config-BJFVoVkf.mjs";import{t as V}from"./config-B0hTZO6E.mjs";import{t as H}from"./script-B97oHT_M.mjs";import{t as U}from"./config-BaNVYrnl.mjs";import{t as W}from"./script-Di-8LIT0.mjs";import{t as G}from"./upgrade-aCJAI3aA.mjs";async function K(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=[`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(`Help`).length+2))/2),0))+g(c.banner.command.primary(`Help`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Help`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Display command usage details and other useful information to the user.`)),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 q(){s(``),s(g(c.heading.secondary(`Usage:`))),s(c.body.secondary(`${c.usage.bin(`$_ cli`)} ${c.usage.command(`help`)} ${c.usage.options(`[options]`)}`),{padding:0}),s(``)}async function J(e=[]){e.join(`/`).toLowerCase()===`build`?P():e.join(`/`).toLowerCase()===`changelog`?I():e.join(`/`).toLowerCase()===`clean`?N():e.join(`/`).toLowerCase()===`completions`?b():e.join(`/`).toLowerCase()===`completions/bash`?x():e.join(`/`).toLowerCase()===`completions/bash/config`?V():e.join(`/`).toLowerCase()===`completions/bash/script`?H():e.join(`/`).toLowerCase()===`completions/fish`?w():e.join(`/`).toLowerCase()===`completions/fish/config`?U():e.join(`/`).toLowerCase()===`completions/fish/script`?W():e.join(`/`).toLowerCase()===`completions/powershell`?S():e.join(`/`).toLowerCase()===`completions/powershell/config`?B():e.join(`/`).toLowerCase()===`completions/powershell/script`?z():e.join(`/`).toLowerCase()===`completions/zsh`?T():e.join(`/`).toLowerCase()===`completions/zsh/config`?R():e.join(`/`).toLowerCase()===`completions/zsh/script`?L():e.join(`/`).toLowerCase()===`create`?M():e.join(`/`).toLowerCase()===`deploy`?j():e.join(`/`).toLowerCase()===`docs`?A():e.join(`/`).toLowerCase()===`gc`?k():e.join(`/`).toLowerCase()===`help`?q():e.join(`/`).toLowerCase()===`lint`?O():e.join(`/`).toLowerCase()===`prepare`?E():e.join(`/`).toLowerCase()===`types`?F():e.join(`/`).toLowerCase()===`upgrade`?G():C()}async function Y(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 K(),await D(),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: help
3
3
 
4
4
  Options:
5
5
  `)),t.help?q():o(`help`,[`help`],[],J)}export{Y as handler};
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`lint`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`lint`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/lint.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"./lint-DgwBwH7Y.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-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./lint-DdDmoyDN.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=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\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(`Lint Source Code`).length+2))/2),0))+g(c.banner.command.primary(`Lint Source Code`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Lint Source Code`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Lint the project's source code for style and syntax errors.`)),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)).lint(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: lint
3
3
 
4
4
  Options:
@@ -1 +1 @@
1
- import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`prepare`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`prepare`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};