powerlines 0.47.144 → 0.47.146

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 (74) hide show
  1. package/dist/config.mjs +0 -2
  2. package/dist/index.mjs +0 -1
  3. package/dist/package.cjs +1 -1
  4. package/dist/package.mjs +1 -1
  5. package/dist/plugin-utils.mjs +0 -2
  6. package/dist/schema-bundle.cjs +58 -0
  7. package/dist/schema-bundle.d.cts +20 -0
  8. package/dist/schema-bundle.d.cts.map +1 -0
  9. package/dist/schema-bundle.d.mts +20 -0
  10. package/dist/schema-bundle.d.mts.map +1 -0
  11. package/dist/schema-bundle.mjs +56 -0
  12. package/dist/schema-bundle.mjs.map +1 -0
  13. package/dist/schema-resolve.cjs +86 -0
  14. package/dist/schema-resolve.d.cts +25 -0
  15. package/dist/schema-resolve.d.cts.map +1 -0
  16. package/dist/schema-resolve.d.mts +25 -0
  17. package/dist/schema-resolve.d.mts.map +1 -0
  18. package/dist/schema-resolve.mjs +85 -0
  19. package/dist/schema-resolve.mjs.map +1 -0
  20. package/dist/schema.cjs +16 -3
  21. package/dist/schema.d.cts +5 -1
  22. package/dist/schema.d.mts +5 -1
  23. package/dist/schema.mjs +7 -2
  24. package/dist/storage.mjs +0 -2
  25. package/package.json +28 -14
  26. package/bin/bin.mjs +0 -8
  27. package/bin/build-DjyA6GQp.mjs +0 -1
  28. package/bin/build.mjs +0 -2
  29. package/bin/changelog-B8i9yY3P.mjs +0 -1
  30. package/bin/changelog.mjs +0 -524
  31. package/bin/clean-B9CJqZ1x.mjs +0 -1
  32. package/bin/clean.mjs +0 -2
  33. package/bin/completions-bash-config.mjs +0 -7
  34. package/bin/completions-bash-script.mjs +0 -7
  35. package/bin/completions-fish-config.mjs +0 -7
  36. package/bin/completions-fish-script.mjs +0 -7
  37. package/bin/completions-powershell-config.mjs +0 -7
  38. package/bin/completions-powershell-script.mjs +0 -7
  39. package/bin/completions-zsh-config.mjs +0 -7
  40. package/bin/completions-zsh-script.mjs +0 -7
  41. package/bin/config-BYBQBrQG.mjs +0 -1
  42. package/bin/config-C1fmmSMf.mjs +0 -1
  43. package/bin/config-CK793fTW.mjs +0 -1
  44. package/bin/config-Zf66j-rA.mjs +0 -1
  45. package/bin/create-DqStfXER.mjs +0 -1
  46. package/bin/create-powerlines-DvusHjN3.mjs +0 -1
  47. package/bin/create.mjs +0 -3
  48. package/bin/deploy-DnH_cRzq.mjs +0 -1
  49. package/bin/deploy.mjs +0 -2
  50. package/bin/docs-HAdp8uaP.mjs +0 -1
  51. package/bin/docs.mjs +0 -2
  52. package/bin/gc-DPUIueyK.mjs +0 -1
  53. package/bin/gc.mjs +0 -3
  54. package/bin/help.mjs +0 -3
  55. package/bin/lint-Ba5PLVn8.mjs +0 -1
  56. package/bin/lint.mjs +0 -2
  57. package/bin/prepare-CGt61HvT.mjs +0 -1
  58. package/bin/prepare.mjs +0 -2
  59. package/bin/prompts-D_Rv-lNz.mjs +0 -27
  60. package/bin/script-Bd5rrPMc.mjs +0 -1
  61. package/bin/script-DG76mLcM.mjs +0 -1
  62. package/bin/script-ad5QoVHh.mjs +0 -1
  63. package/bin/script-zD-5QlvH.mjs +0 -1
  64. package/bin/shared-BItwCZrh.mjs +0 -216
  65. package/bin/shared-HomY1B9h.mjs +0 -103
  66. package/bin/shared-ZYvIh4BL.mjs +0 -249
  67. package/bin/shared-l2cUQ8pt.mjs +0 -235
  68. package/bin/types-CK9oFG7L.mjs +0 -1
  69. package/bin/types.mjs +0 -2
  70. package/bin/update-ChLxGxOi.mjs +0 -1
  71. package/bin/update-ZLGSIorW.mjs +0 -1
  72. package/bin/update.mjs +0 -2
  73. package/bin/zsh-HSOqkRfN.mjs +0 -1
  74. package/dist/_virtual/_rolldown/runtime.mjs +0 -36
package/bin/bin.mjs DELETED
@@ -1,8 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import{B as e,G as t,J as n,K as r,L as i,M as a,O as o,P as s,Q as c,R as l,U as u,V as d,X as f,a as p,c as m,k as h,m as g,n as _,o as v,q as y,r as b,s as x,t as S,z as C}from"./prompts-D_Rv-lNz.mjs";import{a as w,i as T,n as E,o as D,r as O,t as k}from"./zsh-HSOqkRfN.mjs";async function A(n=500){f().get(`is-banner-displayed`)||t(`no-banner`)||t(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),i(``),i(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+x(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-38,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...p.map(e=>h(e).length))>Math.max(C().columns+30,20)?`Powerlines`:`\n${p.join(`
4
- `)}\n`,Math.max(C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+x(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(`Completions`).length+2))/2),0))+x(a.banner.command.primary(`Completions`))+` `.repeat(Math.max(Math.ceil((C().columns-(h(`Completions`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),o(x(a.banner.description.primary(`Commands for generating shell completion scripts for Powerlines.`)),Math.max(60>C().columns/2?C().columns-6:C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(C().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),i(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-35,0)))+` `+x(a.banner.footer.primary(`https://stormsoftware.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),e&&!r()&&await u(n))}async function j(n=500){f().get(`is-banner-displayed`)||t(`no-banner`)||t(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),i(``),i(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+x(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-38,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...p.map(e=>h(e).length))>Math.max(C().columns+30,20)?`Powerlines`:`\n${p.join(`
5
- `)}\n`,Math.max(C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+x(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(`Completions - Bash`).length+2))/2),0))+x(a.banner.command.primary(`Completions - Bash`))+` `.repeat(Math.max(Math.ceil((C().columns-(h(`Completions - Bash`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),o(x(a.banner.description.primary(`Commands to setup bash completions for the Powerlines command-line interface.`)),Math.max(60>C().columns/2?C().columns-6:C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(C().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),i(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-35,0)))+` `+x(a.banner.footer.primary(`https://stormsoftware.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),e&&!r()&&await u(n))}async function M(t=y()){let i=``;if(t.length>4&&t[4]&&(i=t[4]),!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`script`,`config`]).slice(0,3);g(`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(e&&!r()){await j();let e=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`}]});if(S(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await b({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(S(e))return;r[t]=e}e=e.map(e=>r[e]||e);let a=n();if(a&&(a.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),i=e[0],t=a.inputArgs,!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-bash-script.mjs`).then(e=>e.handler))(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-bash-config.mjs`).then(e=>e.handler))(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`script`,`config`]).slice(0,3);g(`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 T()}async function N(n=500){f().get(`is-banner-displayed`)||t(`no-banner`)||t(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),i(``),i(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+x(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-38,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...p.map(e=>h(e).length))>Math.max(C().columns+30,20)?`Powerlines`:`\n${p.join(`
6
- `)}\n`,Math.max(C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+x(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(`Completions - Fish`).length+2))/2),0))+x(a.banner.command.primary(`Completions - Fish`))+` `.repeat(Math.max(Math.ceil((C().columns-(h(`Completions - Fish`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),o(x(a.banner.description.primary(`Commands to setup Fish completions for the Powerlines command-line interface.`)),Math.max(60>C().columns/2?C().columns-6:C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(C().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),i(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-35,0)))+` `+x(a.banner.footer.primary(`https://stormsoftware.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),e&&!r()&&await u(n))}async function P(t=y()){let i=``;if(t.length>4&&t[4]&&(i=t[4]),!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`config`,`script`]).slice(0,3);g(`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(e&&!r()){await N();let e=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`}]});if(S(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await b({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(S(e))return;r[t]=e}e=e.map(e=>r[e]||e);let a=n();if(a&&(a.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),i=e[0],t=a.inputArgs,!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-fish-config.mjs`).then(e=>e.handler))(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-fish-script.mjs`).then(e=>e.handler))(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`config`,`script`]).slice(0,3);g(`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 O()}async function F(n=500){f().get(`is-banner-displayed`)||t(`no-banner`)||t(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),i(``),i(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+x(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-38,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...p.map(e=>h(e).length))>Math.max(C().columns+30,20)?`Powerlines`:`\n${p.join(`
7
- `)}\n`,Math.max(C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+x(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(`Completions - PowerShell`).length+2))/2),0))+x(a.banner.command.primary(`Completions - PowerShell`))+` `.repeat(Math.max(Math.ceil((C().columns-(h(`Completions - PowerShell`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),o(x(a.banner.description.primary(`Commands to setup PowerShell completions for the Powerlines command-line interface.`)),Math.max(60>C().columns/2?C().columns-6:C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(C().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),i(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-35,0)))+` `+x(a.banner.footer.primary(`https://stormsoftware.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),e&&!r()&&await u(n))}async function I(t=y()){let i=``;if(t.length>4&&t[4]&&(i=t[4]),!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`script`,`config`]).slice(0,3);g(`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(e&&!r()){await F();let e=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`}]});if(S(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await b({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(S(e))return;r[t]=e}e=e.map(e=>r[e]||e);let a=n();if(a&&(a.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),i=e[0],t=a.inputArgs,!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-powershell-script.mjs`).then(e=>e.handler))(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-powershell-config.mjs`).then(e=>e.handler))(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`script`,`config`]).slice(0,3);g(`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 E()}async function L(n=500){f().get(`is-banner-displayed`)||t(`no-banner`)||t(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),i(``),i(m.banner.outline.primary(`┏`)+m.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+m.banner.outline.primary(`━`)+` `+x(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-38,0)))+m.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...p.map(e=>h(e).length))>Math.max(C().columns+30,20)?`Powerlines`:`\n${p.join(`
8
- `)}\n`,Math.max(C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+x(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(`Completions - Zsh`).length+2))/2),0))+x(a.banner.command.primary(`Completions - Zsh`))+` `.repeat(Math.max(Math.ceil((C().columns-(h(`Completions - Zsh`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),o(x(a.banner.description.primary(`Commands to setup Zsh completions for the Powerlines command-line interface.`)),Math.max(60>C().columns/2?C().columns-6:C().columns-30,20)).forEach(e=>{i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((C().columns-(h(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((C().columns-(h(e).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(m.banner.outline.primary(`┃`)+` `.repeat(Math.max(C().columns-2,0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),i(m.banner.outline.primary(`┗`)+m.banner.outline.primary(`━`.repeat(Math.max(C().columns-35,0)))+` `+x(a.banner.footer.primary(`https://stormsoftware.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),e&&!r()&&await u(n))}async function R(t=y()){let i=``;if(t.length>4&&t[4]&&(i=t[4]),!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`script`,`config`]).slice(0,3);g(`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(e&&!r()){await L();let e=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`}]});if(S(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await b({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(S(e))return;r[t]=e}e=e.map(e=>r[e]||e);let a=n();if(a&&(a.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(4)].filter(Boolean)),i=e[0],t=a.inputArgs,!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`script`)return(await import(`./completions-zsh-script.mjs`).then(e=>e.handler))(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`config`)return(await import(`./completions-zsh-config.mjs`).then(e=>e.handler))(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`script`,`config`]).slice(0,3);g(`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 k()}async function z(t=y()){let i=``;if(t.length>3&&t[3]&&(i=t[3]),!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return I(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return M(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return R(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return P(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`powershell`,`bash`,`zsh`,`fish`]).slice(0,3);g(`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(e&&!r()){await A();let e=await _({message:`Which command would you like to execute?`,options:[{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`}]});if(S(e))return;let r={};for(let t of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await b({message:`Please provide a value for ${t.replace(/^[+/, "").replace(/]+$/,``)}:`});if(S(e))return;r[t]=e}e=e.map(e=>r[e]||e);let a=n();if(a&&(a.inputArgs=[t.length>0?t[0]:void 0,t.length>1?t[1]:void 0,...e,...t.slice(3)].filter(Boolean)),i=e[0],t=a.inputArgs,!i.startsWith(`-`)){if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`powershell`)return I(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`bash`)return M(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`zsh`)return R(t);if(i.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`fish`)return P(t);if(i&&!i.startsWith(`-`)){let e=l(i,[`powershell`,`bash`,`zsh`,`fish`]).slice(0,3);g(`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 w()}let B=!1;const V=[],H=[];async function U(e={}){try{if(B)return;B=!0;let t=0;e.signal!==void 0&&e.signal>0||e.exception?t=128+(e.signal??1):(typeof process.exitCode==`number`||typeof process.exitCode==`string`)&&(t=process.exitCode),e.exception&&g({message:`A fatal error occured while running the application - please contact the Powerlines support team${e.exception&&typeof e.exception!=`symbol`?`: \n\n${typeof e.exception==`string`?e.exception:e.exception.message}`:`.`}`,...e.exception&&typeof e.exception==`object`?{stack:e.exception.stack}:{}});let n=(n=!1)=>{s(`The Powerlines application exited ${e.exception?`early due to an exception`:`successfully`}${e.startDate?`. Total run time is ${Date.now()-e.startDate.getTime()>5e3?Math.floor((Date.now()-e.startDate.getTime())/1e3):Date.now()-e.startDate.getTime()} ${Date.now()-e.startDate.getTime()>5e3?`seconds`:`milliseconds`}`:``}...`),e.skipProcessExit||process.nextTick(()=>process.exit(t))};for(let e of H)e(t);if(!e.isSynchronous){let e=[],r=0;for(let[n,i]of V)r=Math.max(r,i),e.push(Promise.resolve(n(t)));let i=setTimeout(()=>{n(!0)},r);await Promise.all(e),clearTimeout(i)}n()}catch(t){g(`The exit process failed to complete${t?.message?` - ${t.message}`:``}. Please contact the Powerlines support team.`),e.skipProcessExit||process.nextTick(()=>process.exit(1))}}async function W(){if(t([`version`,`v`])){console.log(`0.47.125`);return}let i=y(),a=``;if(i.length>2&&i[2]&&(a=i[2]),!a.startsWith(`-`)){if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`)return(await import(`./deploy.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return z(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(i);if(a&&!a.startsWith(`-`)){let e=l(a,[`types`,`prepare`,`lint`,`gc`,`garbage-collection`,`docs`,`deploy`,`deployment`,`create`,`clean`,`build`,`changelog`,`completions`,`update`,`upgrade`,`help`]).slice(0,3);g(`Unknown command: "${a}"${e&&e.length>0?`, did you mean: ${e.length===1?`"${e[0]}"`:e.map((t,n)=>n<e.length-1?`"${t}", `:`or "${t}"`)}?`:``} `)}}if(e&&!r()){await v();let e=await _({message:`Which command would you like to execute?`,options:[{value:[`types`],label:`Generate Typescript Declarations`,description:`(powerlines types)`,icon:`🖹`},{value:[`prepare`],label:`Prepare Artifacts`,description:`(powerlines prepare)`,icon:`🖉`},{value:[`lint`],label:`Lint Source Code`,description:`(powerlines lint)`,icon:`🗹`},{value:[`gc`],label:`Garbage Collection`,description:`(powerlines gc)`,icon:`🗶`},{value:[`docs`],label:`Generate Documentation`,description:`(powerlines docs)`,icon:`🕮`},{value:[`deploy`],label:`Deploy`,description:`(powerlines deploy)`,icon:`🛪`},{value:[`create`],label:`Create Project`,description:`(powerlines create)`,icon:`⬚`},{value:[`clean`],label:`Clean`,description:`(powerlines clean)`,icon:`🗑`},{value:[`build`],label:`Build`,description:`(powerlines build)`,icon:`🏗`},{value:[`changelog`],label:`Changelog`,description:`(powerlines changelog)`,icon:`🗃`},{value:[`completions`,`powershell`,`script`],label:`Completions - PowerShell Script`,description:`(powerlines completions powershell script)`,icon:`🖵`},{value:[`completions`,`powershell`,`config`],label:`Completions - PowerShell Configuration`,description:`(powerlines completions powershell config)`,icon:`🖵`},{value:[`completions`,`bash`,`script`],label:`Completions - Bash Script`,description:`(powerlines completions bash script)`,icon:`🖵`},{value:[`completions`,`bash`,`config`],label:`Completions - Bash Configuration`,description:`(powerlines completions bash config)`,icon:`🖵`},{value:[`completions`,`zsh`,`script`],label:`Completions - Zsh Script`,description:`(powerlines completions zsh script)`,icon:`🖵`},{value:[`completions`,`zsh`,`config`],label:`Completions - Zsh Configuration`,description:`(powerlines completions zsh config)`,icon:`🖵`},{value:[`completions`,`fish`,`config`],label:`Completions - Fish Configuration`,description:`(powerlines completions fish config)`,icon:`🖵`},{value:[`completions`,`fish`,`script`],label:`Completions - Fish Script`,description:`(powerlines completions fish script)`,icon:`🖵`},{value:[`update`],label:`Update`,description:`(powerlines update)`,icon:`🖒`},{value:[`help`],label:`Help`,description:`(powerlines help)`,icon:`🛈`}]});if(S(e))return;let t={};for(let n of e.filter(e=>e.startsWith(`[`)&&e.endsWith(`]`))){let e=await b({message:`Please provide a value for ${n.replace(/^[+/, "").replace(/]+$/,``)}:`});if(S(e))return;t[n]=e}e=e.map(e=>t[e]||e);let r=n();if(r&&(r.inputArgs=[i.length>0?i[0]:void 0,i.length>1?i[1]:void 0,...e,...i.slice(2)].filter(Boolean)),a=e[0],i=r.inputArgs,!a.startsWith(`-`)){if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`types`)return(await import(`./types.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`prepare`)return(await import(`./prepare.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`lint`)return(await import(`./lint.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`gc`||a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`garbagecollection`)return(await import(`./gc.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`docs`)return(await import(`./docs.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deploy`||a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`deployment`)return(await import(`./deploy.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`create`)return(await import(`./create.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`clean`)return(await import(`./clean.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`build`)return(await import(`./build.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`changelog`)return(await import(`./changelog.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`completions`)return z(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`update`||a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`upgrade`)return(await import(`./update.mjs`).then(e=>e.handler))(i);if(a.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`help`)return(await import(`./help.mjs`).then(e=>e.handler))(i);if(a&&!a.startsWith(`-`)){let e=l(a,[`types`,`prepare`,`lint`,`gc`,`garbage-collection`,`docs`,`deploy`,`deployment`,`create`,`clean`,`build`,`changelog`,`completions`,`update`,`upgrade`,`help`]).slice(0,3);g(`Unknown command: "${a}"${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 v(0),D()}(async()=>{let e=new Date;try{process.on(`exit`,()=>U({startDate:e,skipProcessExit:!0,isSynchronous:!0,signal:0})),process.on(`beforeExit`,()=>U({startDate:e,signal:0})),process.on(`message`,t=>{t===`shutdown`&&U({startDate:e,isSynchronous:!0,signal:-128})}),process.once(`SIGTERM`,()=>U({startDate:e,signal:15})),process.once(`SIGINT`,()=>U({startDate:e,signal:2})),process.once(`SIGUSR2`,()=>(s(`The application was terminated by the user`),U({startDate:e,signal:12}))),process.once(`SIGQUIT`,()=>(s(`The application was terminated by the user`),U({startDate:e,signal:12})));for(let t of[`unhandledRejection`,`uncaughtException`])process.on(t,n=>U({startDate:e,exception:n||Error(`An ${t===`unhandledRejection`?`unhandled promise rejection`:`uncaught exception`} occurred during processing - the application is shutting down.`)}));await c(async()=>{let e=await W();e?.error&&g(e.error)}),U({startDate:e})}catch(t){U({startDate:e,exception:t})}})();export{U as exit};
@@ -1 +0,0 @@
1
- import{C as e,L as t,M as n,j as r,s as i}from"./prompts-D_Rv-lNz.mjs";function a(){t(``),t(i(n.heading.secondary(`Usage:`))),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`build`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(``),t(i(n.heading.secondary(`Options:`))),r([[{value:n.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`The root directory of the project to build.`),align:`left`,border:`none`}],[{value:n.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(n.body.tertiary(`More information can be found in the Build command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/build`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
package/bin/build.mjs DELETED
@@ -1,2 +0,0 @@
1
- import{$ as e,B as t,G as n,K as r,L as i,M as a,O as o,U as s,V as c,X as l,Y as u,Z as d,a as f,c as p,k as m,nt as h,q as g,s as _,tt as v,z as y}from"./prompts-D_Rv-lNz.mjs";import{t as b}from"./update-ChLxGxOi.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./build-DjyA6GQp.mjs";async function C(e=500){l().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||c||(l().set(`is-banner-displayed`,!0),i(``),i(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+_(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(y().columns-38,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...f.map(e=>m(e).length))>Math.max(y().columns+30,20)?`Powerlines`:`\n${f.join(`
2
- `)}\n`,Math.max(y().columns-30,20)).forEach(e=>{i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(e).length+2))/2),0))+_(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(m(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(`Build`).length+2))/2),0))+_(a.banner.command.primary(`Build`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Build`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Builds the project for production deployment.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(m(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),i(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(y().columns-35,0)))+` `+_(a.banner.footer.primary(`https://stormsoftware.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),t&&!r()&&await s(e))}async function w(e){await(await x(e)).build(e)}async function T(t=g()){let n={...u()};for(let e=0;e<t.slice(0).length;e++){let r=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`)&&(/^--?(root)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?n.root=r.replace(/^--?(root)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(n.root=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return await C(),await b(),r()||(i(``),(h||v||e.LOG_LEVEL===`debug`)&&i(a.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),n.help?S():d(`build`,[`build`],[n],w)}export{T as handler};
@@ -1 +0,0 @@
1
- import{C as e,L as t,M as n,j as r,s as i,x as a}from"./prompts-D_Rv-lNz.mjs";function o(){t(`${i(n.heading.secondary(`Tags: `))} ${n.tags.utility?n.tags.utility(a(` Utility `)):n.tags.$default(a(` Utility `))}`,{padding:0}),t(``),t(i(n.heading.secondary(`Usage:`))),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`changelog`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(``),t(i(n.heading.secondary(`Options:`))),r([[{value:n.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(n.body.tertiary(`More information can be found in the Changelog command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/changelog`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
package/bin/changelog.mjs DELETED
@@ -1,524 +0,0 @@
1
- import{$ as e,B as t,G as n,K as r,L as i,M as a,O as o,U as s,V as c,X as l,Y as u,Z as d,a as f,c as p,k as m,nt as h,q as g,s as _,tt as v,z as y}from"./prompts-D_Rv-lNz.mjs";import{t as b}from"./update-ChLxGxOi.mjs";import{t as x}from"./changelog-B8i9yY3P.mjs";async function S(e=500){l().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||c||(l().set(`is-banner-displayed`,!0),i(``),i(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+_(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(y().columns-38,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...f.map(e=>m(e).length))>Math.max(y().columns+30,20)?`Powerlines`:`\n${f.join(`
2
- `)}\n`,Math.max(y().columns-30,20)).forEach(e=>{i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(e).length+2))/2),0))+_(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(m(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(`Changelog`).length+2))/2),0))+_(a.banner.command.primary(`Changelog`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Changelog`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Display the Powerlines changelog.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(m(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),i(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(y().columns-35,0)))+` `+_(a.banner.footer.primary(`https://stormsoftware.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),t&&!r()&&await s(e))}function C(){console.log(`${a.body.primary(`textColors.body.primary("[Image: Powerlines' logo banner]")`)}
3
-
4
- ${_(a.heading.primary(`Changelog for Powerlines - CLI`))}
5
-
6
- ${_(a.heading.secondary(`0.47.125 (06/05/2026)`))}
7
-
8
- ${_(a.heading.tertiary(`Features`))}
9
-
10
- ${a.body.primary(`• cli: Updated CLI to deploy as standalone package (990f64bc9)`)}
11
-
12
- ${_(a.heading.secondary(`0.2.40 (05/13/2026)`))}
13
-
14
- ${_(a.heading.tertiary(`Updated Dependencies`))}
15
-
16
- ${a.body.primary(`• Updated powerlines to v0.47.16`)}
17
-
18
- ${_(a.heading.secondary(`0.2.39 (05/13/2026)`))}
19
-
20
- ${_(a.heading.tertiary(`Updated Dependencies`))}
21
-
22
- ${a.body.primary(`• Updated deepkit to v0.8.66
23
- • Updated powerlines to v0.47.15`)}
24
-
25
- ${_(a.heading.secondary(`0.2.38 (05/13/2026)`))}
26
-
27
- ${_(a.heading.tertiary(`Updated Dependencies`))}
28
-
29
- ${a.body.primary(`• Updated deepkit to v0.8.65
30
- • Updated powerlines to v0.47.14`)}
31
-
32
- ${_(a.heading.secondary(`0.2.37 (05/13/2026)`))}
33
-
34
- ${_(a.heading.tertiary(`Updated Dependencies`))}
35
-
36
- ${a.body.primary(`• Updated powerlines to v0.47.13`)}
37
-
38
- ${_(a.heading.secondary(`0.2.36 (05/13/2026)`))}
39
-
40
- ${_(a.heading.tertiary(`Updated Dependencies`))}
41
-
42
- ${a.body.primary(`• Updated powerlines to v0.47.12`)}
43
-
44
- ${_(a.heading.secondary(`0.2.35 (05/13/2026)`))}
45
-
46
- ${_(a.heading.tertiary(`Updated Dependencies`))}
47
-
48
- ${a.body.primary(`• Updated powerlines to v0.47.11`)}
49
-
50
- ${_(a.heading.secondary(`0.2.34 (05/13/2026)`))}
51
-
52
- ${_(a.heading.tertiary(`Updated Dependencies`))}
53
-
54
- ${a.body.primary(`• Updated powerlines to v0.47.10`)}
55
-
56
- ${_(a.heading.secondary(`0.2.33 (05/13/2026)`))}
57
-
58
- ${_(a.heading.tertiary(`Updated Dependencies`))}
59
-
60
- ${a.body.primary(`• Updated powerlines to v0.47.9`)}
61
-
62
- ${_(a.heading.secondary(`0.2.32 (05/13/2026)`))}
63
-
64
- ${_(a.heading.tertiary(`Updated Dependencies`))}
65
-
66
- ${a.body.primary(`• Updated powerlines to v0.47.8`)}
67
-
68
- ${_(a.heading.secondary(`0.2.30 (05/12/2026)`))}
69
-
70
- ${_(a.heading.tertiary(`Updated Dependencies`))}
71
-
72
- ${a.body.primary(`• Updated powerlines to v0.47.7`)}
73
-
74
- ${_(a.heading.secondary(`0.2.29 (05/12/2026)`))}
75
-
76
- ${_(a.heading.tertiary(`Updated Dependencies`))}
77
-
78
- ${a.body.primary(`• Updated powerlines to v0.47.6`)}
79
-
80
- ${_(a.heading.secondary(`0.2.28 (05/12/2026)`))}
81
-
82
- ${_(a.heading.tertiary(`Miscellaneous`))}
83
-
84
- ${a.body.primary(`• monorepo: Reorganize repository folder structure (c2447100f)`)}
85
-
86
- ${_(a.heading.tertiary(`Updated Dependencies`))}
87
-
88
- ${a.body.primary(`• Updated powerlines to v0.47.5`)}
89
-
90
- ${_(a.heading.secondary(`0.2.27 (04/26/2026)`))}
91
-
92
- ${_(a.heading.tertiary(`Updated Dependencies`))}
93
-
94
- ${a.body.primary(`• Updated powerlines to v0.43.24
95
- • Updated deepkit to v0.8.27`)}
96
-
97
- ${_(a.heading.secondary(`0.2.26 (04/26/2026)`))}
98
-
99
- ${_(a.heading.tertiary(`Updated Dependencies`))}
100
-
101
- ${a.body.primary(`• Updated powerlines to v0.43.23
102
- • Updated deepkit to v0.8.26`)}
103
-
104
- ${_(a.heading.secondary(`0.2.25 (04/26/2026)`))}
105
-
106
- ${_(a.heading.tertiary(`Updated Dependencies`))}
107
-
108
- ${a.body.primary(`• Updated powerlines to v0.43.22
109
- • Updated deepkit to v0.8.25`)}
110
-
111
- ${_(a.heading.secondary(`0.2.24 (04/26/2026)`))}
112
-
113
- ${_(a.heading.tertiary(`Updated Dependencies`))}
114
-
115
- ${a.body.primary(`• Updated powerlines to v0.43.21
116
- • Updated deepkit to v0.8.24`)}
117
-
118
- ${_(a.heading.secondary(`0.2.23 (04/26/2026)`))}
119
-
120
- ${_(a.heading.tertiary(`Updated Dependencies`))}
121
-
122
- ${a.body.primary(`• Updated powerlines to v0.43.20
123
- • Updated deepkit to v0.8.23`)}
124
-
125
- ${_(a.heading.secondary(`0.2.22 (04/25/2026)`))}
126
-
127
- ${_(a.heading.tertiary(`Updated Dependencies`))}
128
-
129
- ${a.body.primary(`• Updated powerlines to v0.43.19
130
- • Updated deepkit to v0.8.22`)}
131
-
132
- ${_(a.heading.secondary(`0.2.21 (04/25/2026)`))}
133
-
134
- ${_(a.heading.tertiary(`Updated Dependencies`))}
135
-
136
- ${a.body.primary(`• Updated powerlines to v0.43.18
137
- • Updated deepkit to v0.8.21`)}
138
-
139
- ${_(a.heading.secondary(`0.2.19 (04/25/2026)`))}
140
-
141
- ${_(a.heading.tertiary(`Updated Dependencies`))}
142
-
143
- ${a.body.primary(`• Updated powerlines to v0.43.17
144
- • Updated deepkit to v0.8.20`)}
145
-
146
- ${_(a.heading.secondary(`0.2.18 (04/25/2026)`))}
147
-
148
- ${_(a.heading.tertiary(`Updated Dependencies`))}
149
-
150
- ${a.body.primary(`• Updated powerlines to v0.43.16
151
- • Updated deepkit to v0.8.19`)}
152
-
153
- ${_(a.heading.secondary(`0.2.17 (04/25/2026)`))}
154
-
155
- ${_(a.heading.tertiary(`Updated Dependencies`))}
156
-
157
- ${a.body.primary(`• Updated powerlines to v0.43.15
158
- • Updated deepkit to v0.8.18`)}
159
-
160
- ${_(a.heading.secondary(`0.2.16 (04/25/2026)`))}
161
-
162
- ${_(a.heading.tertiary(`Updated Dependencies`))}
163
-
164
- ${a.body.primary(`• Updated powerlines to v0.43.14
165
- • Updated deepkit to v0.8.17`)}
166
-
167
- ${_(a.heading.secondary(`0.2.15 (04/25/2026)`))}
168
-
169
- ${_(a.heading.tertiary(`Updated Dependencies`))}
170
-
171
- ${a.body.primary(`• Updated powerlines to v0.43.13
172
- • Updated deepkit to v0.8.16`)}
173
-
174
- ${_(a.heading.secondary(`0.2.14 (04/24/2026)`))}
175
-
176
- ${_(a.heading.tertiary(`Updated Dependencies`))}
177
-
178
- ${a.body.primary(`• Updated powerlines to v0.43.12
179
- • Updated deepkit to v0.8.15`)}
180
-
181
- ${_(a.heading.secondary(`0.2.13 (04/24/2026)`))}
182
-
183
- ${_(a.heading.tertiary(`Updated Dependencies`))}
184
-
185
- ${a.body.primary(`• Updated powerlines to v0.43.11
186
- • Updated deepkit to v0.8.14`)}
187
-
188
- ${_(a.heading.secondary(`0.2.12 (04/24/2026)`))}
189
-
190
- ${_(a.heading.tertiary(`Updated Dependencies`))}
191
-
192
- ${a.body.primary(`• Updated powerlines to v0.43.10
193
- • Updated deepkit to v0.8.13`)}
194
-
195
- ${_(a.heading.secondary(`0.2.11 (04/24/2026)`))}
196
-
197
- ${_(a.heading.tertiary(`Updated Dependencies`))}
198
-
199
- ${a.body.primary(`• Updated powerlines to v0.43.9
200
- • Updated deepkit to v0.8.12`)}
201
-
202
- ${_(a.heading.secondary(`0.2.10 (04/24/2026)`))}
203
-
204
- ${_(a.heading.tertiary(`Updated Dependencies`))}
205
-
206
- ${a.body.primary(`• Updated powerlines to v0.43.8
207
- • Updated deepkit to v0.8.11`)}
208
-
209
- ${_(a.heading.secondary(`0.2.9 (04/23/2026)`))}
210
-
211
- ${_(a.heading.tertiary(`Updated Dependencies`))}
212
-
213
- ${a.body.primary(`• Updated powerlines to v0.43.7`)}
214
-
215
- ${_(a.heading.secondary(`0.2.8 (04/23/2026)`))}
216
-
217
- ${_(a.heading.tertiary(`Updated Dependencies`))}
218
-
219
- ${a.body.primary(`• Updated powerlines to v0.43.6
220
- • Updated deepkit to v0.8.10`)}
221
-
222
- ${_(a.heading.secondary(`0.2.7 (04/23/2026)`))}
223
-
224
- ${_(a.heading.tertiary(`Updated Dependencies`))}
225
-
226
- ${a.body.primary(`• Updated powerlines to v0.43.5
227
- • Updated deepkit to v0.8.9`)}
228
-
229
- ${_(a.heading.secondary(`0.2.6 (04/22/2026)`))}
230
-
231
- ${_(a.heading.tertiary(`Updated Dependencies`))}
232
-
233
- ${a.body.primary(`• Updated powerlines to v0.43.4
234
- • Updated deepkit to v0.8.8`)}
235
-
236
- ${_(a.heading.secondary(`0.2.5 (04/21/2026)`))}
237
-
238
- ${_(a.heading.tertiary(`Updated Dependencies`))}
239
-
240
- ${a.body.primary(`• Updated powerlines to v0.43.3
241
- • Updated deepkit to v0.8.7`)}
242
-
243
- ${_(a.heading.secondary(`0.2.4 (04/21/2026)`))}
244
-
245
- ${_(a.heading.tertiary(`Updated Dependencies`))}
246
-
247
- ${a.body.primary(`• Updated powerlines to v0.43.2
248
- • Updated deepkit to v0.8.6`)}
249
-
250
- ${_(a.heading.secondary(`0.2.3 (04/21/2026)`))}
251
-
252
- ${_(a.heading.tertiary(`Updated Dependencies`))}
253
-
254
- ${a.body.primary(`• Updated powerlines to v0.43.1
255
- • Updated deepkit to v0.8.5`)}
256
-
257
- ${_(a.heading.secondary(`0.2.2 (04/21/2026)`))}
258
-
259
- ${_(a.heading.tertiary(`Features`))}
260
-
261
- ${a.body.primary(`• powerlines: Added engine to support multi-process Powerlines runs (75ea086a8)`)}
262
-
263
- ${_(a.heading.tertiary(`Updated Dependencies`))}
264
-
265
- ${a.body.primary(`• Updated powerlines to v0.43.0
266
- • Updated deepkit to v0.8.4`)}
267
-
268
- ${_(a.heading.secondary(`0.2.1 (04/17/2026)`))}
269
-
270
- ${_(a.heading.tertiary(`Bug Fixes`))}
271
-
272
- ${a.body.primary(`• cli: Resolve issue building cli package in build script (dba6c7d93)`)}
273
-
274
- ${_(a.heading.tertiary(`Updated Dependencies`))}
275
-
276
- ${a.body.primary(`• Updated powerlines to v0.42.41
277
- • Updated deepkit to v0.8.3`)}
278
-
279
- ${_(a.heading.secondary(`0.2.0 (04/14/2026)`))}
280
-
281
- ${_(a.heading.tertiary(`Features`))}
282
-
283
- ${a.body.primary(`• cli: Added Powerlines commands to CLI application code (fd6a91228)`)}
284
-
285
- ${_(a.heading.tertiary(`Updated Dependencies`))}
286
-
287
- ${a.body.primary(`• Updated powerlines to v0.42.40`)}
288
-
289
- ${_(a.heading.secondary(`0.1.85 (04/14/2026)`))}
290
-
291
- ${_(a.heading.tertiary(`Updated Dependencies`))}
292
-
293
- ${a.body.primary(`• Updated powerlines to v0.42.39
294
- • Updated deepkit to v0.8.2`)}
295
-
296
- ${_(a.heading.secondary(`0.1.84 (04/12/2026)`))}
297
-
298
- ${_(a.heading.tertiary(`Updated Dependencies`))}
299
-
300
- ${a.body.primary(`• Updated powerlines to v0.42.38
301
- • Updated deepkit to v0.8.1`)}
302
-
303
- ${_(a.heading.secondary(`0.1.83 (04/11/2026)`))}
304
-
305
- ${_(a.heading.tertiary(`Updated Dependencies`))}
306
-
307
- ${a.body.primary(`• Updated powerlines to v0.42.37
308
- • Updated deepkit to v0.8.0`)}
309
-
310
- ${_(a.heading.secondary(`0.1.82 (04/10/2026)`))}
311
-
312
- ${_(a.heading.tertiary(`Updated Dependencies`))}
313
-
314
- ${a.body.primary(`• Updated deepkit to v0.7.8`)}
315
-
316
- ${_(a.heading.secondary(`0.1.81 (04/10/2026)`))}
317
-
318
- ${_(a.heading.tertiary(`Updated Dependencies`))}
319
-
320
- ${a.body.primary(`• Updated deepkit to v0.7.7`)}
321
-
322
- ${_(a.heading.secondary(`0.1.80 (04/10/2026)`))}
323
-
324
- ${_(a.heading.tertiary(`Updated Dependencies`))}
325
-
326
- ${a.body.primary(`• Updated powerlines to v0.42.36
327
- • Updated deepkit to v0.7.6`)}
328
-
329
- ${_(a.heading.secondary(`0.1.79 (04/10/2026)`))}
330
-
331
- ${_(a.heading.tertiary(`Updated Dependencies`))}
332
-
333
- ${a.body.primary(`• Updated powerlines to v0.42.35
334
- • Updated deepkit to v0.7.5`)}
335
-
336
- ${_(a.heading.secondary(`0.1.78 (04/10/2026)`))}
337
-
338
- ${_(a.heading.tertiary(`Updated Dependencies`))}
339
-
340
- ${a.body.primary(`• Updated powerlines to v0.42.34
341
- • Updated deepkit to v0.7.4`)}
342
-
343
- ${_(a.heading.secondary(`0.1.77 (04/06/2026)`))}
344
-
345
- ${_(a.heading.tertiary(`Updated Dependencies`))}
346
-
347
- ${a.body.primary(`• Updated powerlines to v0.42.33
348
- • Updated deepkit to v0.7.3`)}
349
-
350
- ${_(a.heading.secondary(`0.1.76 (04/06/2026)`))}
351
-
352
- ${_(a.heading.tertiary(`Updated Dependencies`))}
353
-
354
- ${a.body.primary(`• Updated powerlines to v0.42.32
355
- • Updated deepkit to v0.7.2`)}
356
-
357
- ${_(a.heading.secondary(`0.1.75 (04/06/2026)`))}
358
-
359
- ${_(a.heading.tertiary(`Updated Dependencies`))}
360
-
361
- ${a.body.primary(`• Updated powerlines to v0.42.31
362
- • Updated deepkit to v0.7.1`)}
363
-
364
- ${_(a.heading.secondary(`0.1.74 (04/06/2026)`))}
365
-
366
- ${_(a.heading.tertiary(`Updated Dependencies`))}
367
-
368
- ${a.body.primary(`• Updated powerlines to v0.42.30
369
- • Updated deepkit to v0.7.0`)}
370
-
371
- ${_(a.heading.secondary(`0.1.73 (04/03/2026)`))}
372
-
373
- ${_(a.heading.tertiary(`Updated Dependencies`))}
374
-
375
- ${a.body.primary(`• Updated powerlines to v0.42.29
376
- • Updated deepkit to v0.6.167`)}
377
-
378
- ${_(a.heading.secondary(`0.1.72 (04/03/2026)`))}
379
-
380
- ${_(a.heading.tertiary(`Miscellaneous`))}
381
-
382
- ${a.body.primary(`• cli: Include missing updates to package.json file (aca938b12)`)}
383
-
384
- ${_(a.heading.tertiary(`Updated Dependencies`))}
385
-
386
- ${a.body.primary(`• Updated powerlines to v0.42.28
387
- • Updated deepkit to v0.6.166`)}
388
-
389
- ${_(a.heading.secondary(`0.1.71 (04/01/2026)`))}
390
-
391
- ${_(a.heading.tertiary(`Updated Dependencies`))}
392
-
393
- ${a.body.primary(`• Updated powerlines to v0.42.27`)}
394
-
395
- ${_(a.heading.secondary(`0.1.70 (03/31/2026)`))}
396
-
397
- ${_(a.heading.tertiary(`Updated Dependencies`))}
398
-
399
- ${a.body.primary(`• Updated powerlines to v0.42.26`)}
400
-
401
- ${_(a.heading.secondary(`0.1.69 (03/28/2026)`))}
402
-
403
- ${_(a.heading.tertiary(`Updated Dependencies`))}
404
-
405
- ${a.body.primary(`• Updated powerlines to v0.42.25`)}
406
-
407
- ${_(a.heading.secondary(`0.1.68 (03/27/2026)`))}
408
-
409
- ${_(a.heading.tertiary(`Updated Dependencies`))}
410
-
411
- ${a.body.primary(`• Updated powerlines to v0.42.24`)}
412
-
413
- ${_(a.heading.secondary(`0.1.67 (03/27/2026)`))}
414
-
415
- ${_(a.heading.tertiary(`Updated Dependencies`))}
416
-
417
- ${a.body.primary(`• Updated powerlines to v0.42.23`)}
418
-
419
- ${_(a.heading.secondary(`0.1.66 (03/26/2026)`))}
420
-
421
- ${_(a.heading.tertiary(`Updated Dependencies`))}
422
-
423
- ${a.body.primary(`• Updated powerlines to v0.42.22`)}
424
-
425
- ${_(a.heading.secondary(`0.1.65 (03/26/2026)`))}
426
-
427
- ${_(a.heading.tertiary(`Updated Dependencies`))}
428
-
429
- ${a.body.primary(`• Updated powerlines to v0.42.21`)}
430
-
431
- ${_(a.heading.secondary(`0.1.64 (03/25/2026)`))}
432
-
433
- ${_(a.heading.tertiary(`Updated Dependencies`))}
434
-
435
- ${a.body.primary(`• Updated powerlines to v0.42.20`)}
436
-
437
- ${_(a.heading.secondary(`0.1.63 (03/23/2026)`))}
438
-
439
- ${_(a.heading.tertiary(`Updated Dependencies`))}
440
-
441
- ${a.body.primary(`• Updated powerlines to v0.42.19`)}
442
-
443
- ${_(a.heading.secondary(`0.1.62 (03/23/2026)`))}
444
-
445
- ${_(a.heading.tertiary(`Updated Dependencies`))}
446
-
447
- ${a.body.primary(`• Updated powerlines to v0.42.18`)}
448
-
449
- ${_(a.heading.secondary(`0.1.61 (03/22/2026)`))}
450
-
451
- ${_(a.heading.tertiary(`Updated Dependencies`))}
452
-
453
- ${a.body.primary(`• Updated powerlines to v0.42.17`)}
454
-
455
- ${_(a.heading.secondary(`0.1.60 (03/22/2026)`))}
456
-
457
- ${_(a.heading.tertiary(`Updated Dependencies`))}
458
-
459
- ${a.body.primary(`• Updated powerlines to v0.42.16`)}
460
-
461
- ${_(a.heading.secondary(`0.1.59 (03/22/2026)`))}
462
-
463
- ${_(a.heading.tertiary(`Updated Dependencies`))}
464
-
465
- ${a.body.primary(`• Updated powerlines to v0.42.15`)}
466
-
467
- ${_(a.heading.secondary(`0.1.58 (03/22/2026)`))}
468
-
469
- ${_(a.heading.tertiary(`Updated Dependencies`))}
470
-
471
- ${a.body.primary(`• Updated powerlines to v0.42.14`)}
472
-
473
- ${_(a.heading.secondary(`0.1.57 (03/22/2026)`))}
474
-
475
- ${_(a.heading.tertiary(`Updated Dependencies`))}
476
-
477
- ${a.body.primary(`• Updated powerlines to v0.42.13`)}
478
-
479
- ${_(a.heading.secondary(`0.1.56 (03/22/2026)`))}
480
-
481
- ${_(a.heading.tertiary(`Updated Dependencies`))}
482
-
483
- ${a.body.primary(`• Updated powerlines to v0.42.12`)}
484
-
485
- ${_(a.heading.secondary(`0.1.55 (03/22/2026)`))}
486
-
487
- ${_(a.heading.tertiary(`Bug Fixes`))}
488
-
489
- ${a.body.primary(`• monorepo: Update pnpm-lock.yaml file (9c01ec1e8)`)}
490
-
491
- ${_(a.heading.tertiary(`Updated Dependencies`))}
492
-
493
- ${a.body.primary(`• Updated powerlines to v0.42.11`)}
494
-
495
- ${_(a.heading.secondary(`0.1.40 (03/14/2026)`))}
496
-
497
- ${_(a.heading.tertiary(`Miscellaneous`))}
498
-
499
- ${a.body.primary(`• monorepo: Update version in README.md files (2d27cc668)
500
- • monorepo: Regenerate README.md files (fc00b8074)`)}
501
-
502
- ${_(a.heading.secondary(`0.1.33 (03/12/2026)`))}
503
-
504
- ${_(a.heading.tertiary(`Bug Fixes`))}
505
-
506
- ${a.body.primary(`• monorepo: Resolve build issues after tsdown upgrade (509fff49b)`)}
507
-
508
- ${_(a.heading.secondary(`0.1.29 (03/11/2026)`))}
509
-
510
- ${_(a.heading.tertiary(`Miscellaneous`))}
511
-
512
- ${a.body.primary(`• monorepo: Regenerate README.md files for workspace (248c3f44e)`)}
513
-
514
- ${_(a.heading.secondary(`0.1.27 (03/11/2026)`))}
515
-
516
- ${_(a.heading.tertiary(`Miscellaneous`))}
517
-
518
- ${a.body.primary(`• monorepo: Reformat workspace packages' source code (4e6846b40)`)}
519
-
520
- ${_(a.heading.secondary(`0.1.0 (02/27/2026)`))}
521
-
522
- ${_(a.heading.tertiary(`Features`))}
523
-
524
- ${a.body.primary(`• cli: Initial check-in of the command-line interface package (1e228eee5)`)}`)}async function w(t=g()){let n={...u()};for(let e=0;e<t.slice(0).length;e++)t[e].length>3&&t[e].startsWith(`--`)?`${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`${t[e].slice(1).replaceAll(`-`,``)}`:t[e];return await S(),await b(),r()||(i(``),(h||v||e.LOG_LEVEL===`debug`)&&i(a.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),n.help?x():d(`changelog`,[`changelog`],[],C)}export{w as handler};
@@ -1 +0,0 @@
1
- import{C as e,L as t,M as n,j as r,s as i}from"./prompts-D_Rv-lNz.mjs";function a(){t(``),t(i(n.heading.secondary(`Usage:`))),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`clean`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(``),t(i(n.heading.secondary(`Options:`))),r([[{value:n.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Enable interactive mode - will be set to false if running in a CI pipeline (env: POWERLINES_INTERACTIVE, default: true).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Do not display the application banner displayed while running the CLI - will be set to true if running in a CI pipeline (env: POWERLINES_NO_BANNER, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Disable interactive mode - will be set to true if running in a CI pipeline (env: POWERLINES_NON_INTERACTIVE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`The root directory of the project to clean.`),align:`left`,border:`none`}],[{value:n.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:n.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Skip all prompts by answering yes to all of them - will be set to true if running in a CI pipeline (env: POWERLINES_YES, default: false).`),align:`left`,border:`none`}]]),t(``),t(n.body.tertiary(`More information can be found in the Clean command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/clean`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
package/bin/clean.mjs DELETED
@@ -1,2 +0,0 @@
1
- import{$ as e,B as t,G as n,K as r,L as i,M as a,O as o,U as s,V as c,X as l,Y as u,Z as d,a as f,c as p,k as m,nt as h,q as g,s as _,tt as v,z as y}from"./prompts-D_Rv-lNz.mjs";import{t as b}from"./update-ChLxGxOi.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./clean-B9CJqZ1x.mjs";async function C(e=500){l().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||c||(l().set(`is-banner-displayed`,!0),i(``),i(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+_(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(y().columns-38,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...f.map(e=>m(e).length))>Math.max(y().columns+30,20)?`Powerlines`:`\n${f.join(`
2
- `)}\n`,Math.max(y().columns-30,20)).forEach(e=>{i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(e).length+2))/2),0))+_(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(m(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(`Clean`).length+2))/2),0))+_(a.banner.command.primary(`Clean`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Clean`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Cleans the project by removing build artifacts and temporary files.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(m(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),i(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(y().columns-35,0)))+` `+_(a.banner.footer.primary(`https://stormsoftware.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),t&&!r()&&await s(e))}async function w(e){await(await x(e)).clean(e)}async function T(t=g()){let n={...u()};for(let e=0;e<t.slice(0).length;e++){let r=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`)&&(/^--?(root)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?n.root=r.replace(/^--?(root)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(n.root=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return await C(),await b(),r()||(i(``),(h||v||e.LOG_LEVEL===`debug`)&&i(a.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),n.help?S():d(`clean`,[`clean`],[n],w)}export{T as handler};