powerlines 0.47.125 → 0.47.127

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/bin/bin.mjs +7 -7
  2. package/bin/build-DB7Qg8JL.mjs +1 -0
  3. package/bin/build.mjs +1 -1
  4. package/bin/changelog-BvwdAR9P.mjs +1 -0
  5. package/bin/changelog.mjs +8 -2
  6. package/bin/clean-BvoWipQk.mjs +1 -0
  7. package/bin/clean.mjs +1 -1
  8. package/bin/completions-bash-config.mjs +4 -4
  9. package/bin/completions-bash-script.mjs +3 -3
  10. package/bin/completions-fish-config.mjs +4 -4
  11. package/bin/completions-fish-script.mjs +3 -3
  12. package/bin/completions-powershell-config.mjs +4 -4
  13. package/bin/completions-powershell-script.mjs +3 -3
  14. package/bin/completions-zsh-config.mjs +3 -3
  15. package/bin/completions-zsh-script.mjs +2 -2
  16. package/bin/config-CBOLGGRN.mjs +1 -0
  17. package/bin/config-Cgy-77bf.mjs +1 -0
  18. package/bin/config-DN4qOrRO.mjs +1 -0
  19. package/bin/config-DrW3et5b.mjs +1 -0
  20. package/bin/create-T3P6LNng.mjs +1 -0
  21. package/bin/create-powerlines-DvusHjN3.mjs +1 -0
  22. package/bin/create.mjs +1 -1
  23. package/bin/deploy-DRvDq2cP.mjs +1 -0
  24. package/bin/deploy.mjs +1 -1
  25. package/bin/docs-M1aA2x15.mjs +1 -0
  26. package/bin/docs.mjs +1 -1
  27. package/bin/gc-CdHVi7oK.mjs +1 -0
  28. package/bin/gc.mjs +1 -1
  29. package/bin/help.mjs +2 -2
  30. package/bin/lint-Nf5sAXLr.mjs +1 -0
  31. package/bin/lint.mjs +1 -1
  32. package/bin/prepare-DzdEY2vL.mjs +1 -0
  33. package/bin/prepare.mjs +1 -1
  34. package/bin/{prompts-BO1_kAkC.mjs → prompts-Rsqng44G.mjs} +2 -2
  35. package/bin/script-BH-9NBWs.mjs +1 -0
  36. package/bin/script-CA2uVVUu.mjs +1 -0
  37. package/bin/script-DTC5wHER.mjs +1 -0
  38. package/bin/script-DhtPxvAu.mjs +1 -0
  39. package/bin/{shared-6FTnkwEI.mjs → shared-BUzfvq3v.mjs} +4 -4
  40. package/bin/{shared-C7IWiq-2.mjs → shared-BsePrzLP.mjs} +68 -68
  41. package/bin/{shared-e9pqDaa3.mjs → shared-CJXquqHR.mjs} +28 -28
  42. package/bin/{shared-Dhxn0TVd.mjs → shared-CgiVDHJI.mjs} +33 -33
  43. package/bin/types-Dn7zaJcB.mjs +1 -0
  44. package/bin/types.mjs +1 -1
  45. package/bin/upgrade-BZwwh4wZ.mjs +1 -0
  46. package/bin/{upgrade-D7LbxJ-i.mjs → upgrade-CbOYYUL8.mjs} +1 -1
  47. package/bin/upgrade.mjs +2 -2
  48. package/bin/zsh-R9CKPSsN.mjs +3 -0
  49. package/dist/package.cjs +1 -1
  50. package/dist/package.mjs +1 -1
  51. package/package.json +7 -7
  52. package/bin/build-DLpROs1Y.mjs +0 -1
  53. package/bin/changelog-BRROp0c_.mjs +0 -1
  54. package/bin/clean-BK0v29iM.mjs +0 -1
  55. package/bin/config-CHoghPrR.mjs +0 -1
  56. package/bin/config-CY1Qq9ZH.mjs +0 -1
  57. package/bin/config-CmSSUBEW.mjs +0 -1
  58. package/bin/config-DVkCUl-v.mjs +0 -1
  59. package/bin/create-NSNAgFJY.mjs +0 -1
  60. package/bin/create-powerlines-DeMZsc3_.mjs +0 -1
  61. package/bin/deploy-ULfMjQyY.mjs +0 -1
  62. package/bin/docs-BchaiW6S.mjs +0 -1
  63. package/bin/gc-D7LfDJqD.mjs +0 -1
  64. package/bin/lint-DgwBwH7Y.mjs +0 -1
  65. package/bin/prepare-BIckwpx0.mjs +0 -1
  66. package/bin/script-DKzNu_a1.mjs +0 -1
  67. package/bin/script-DLuJ6_sY.mjs +0 -1
  68. package/bin/script-DNHmJ5AE.mjs +0 -1
  69. package/bin/script-Dj5dsyLK.mjs +0 -1
  70. package/bin/types-Cj1dBpbF.mjs +0 -1
  71. package/bin/upgrade-DoVBmRQU.mjs +0 -1
  72. package/bin/zsh-CT9O9pWB.mjs +0 -3
package/bin/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-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./gc-CdHVi7oK.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=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`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-Rsqng44G.mjs";import{a as b,i as x,n as S,o as C,r as w,t as T}from"./zsh-R9CKPSsN.mjs";import{t as E}from"./types-Dn7zaJcB.mjs";import{t as D}from"./upgrade-CbOYYUL8.mjs";import{t as O}from"./prepare-DzdEY2vL.mjs";import{t as k}from"./gc-CdHVi7oK.mjs";import{t as A}from"./lint-Nf5sAXLr.mjs";import{t as j}from"./docs-M1aA2x15.mjs";import{t as M}from"./deploy-DRvDq2cP.mjs";import{t as N}from"./create-T3P6LNng.mjs";import{t as P}from"./clean-BvoWipQk.mjs";import{t as F}from"./build-DB7Qg8JL.mjs";import{t as I}from"./changelog-BvwdAR9P.mjs";import{t as L}from"./script-DhtPxvAu.mjs";import{t as R}from"./config-DN4qOrRO.mjs";import{t as z}from"./script-DTC5wHER.mjs";import{t as B}from"./config-CBOLGGRN.mjs";import{t as V}from"./script-CA2uVVUu.mjs";import{t as H}from"./config-DrW3et5b.mjs";import{t as U}from"./script-BH-9NBWs.mjs";import{t as W}from"./config-Cgy-77bf.mjs";import{t as G}from"./upgrade-BZwwh4wZ.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=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`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(`$_ powerlines`)} ${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`?H():e.join(`/`).toLowerCase()===`completions/bash/script`?V():e.join(`/`).toLowerCase()===`completions/fish`?w():e.join(`/`).toLowerCase()===`completions/fish/config`?W():e.join(`/`).toLowerCase()===`completions/fish/script`?U():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`?N():e.join(`/`).toLowerCase()===`deploy`?M():e.join(`/`).toLowerCase()===`docs`?j():e.join(`/`).toLowerCase()===`gc`?k():e.join(`/`).toLowerCase()===`help`?q():e.join(`/`).toLowerCase()===`lint`?A():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
3
3
 
4
4
  Options:
5
5
  `)),t.help?q():o(`help`,[`help`],[],J)}export{Y as handler};
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`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-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./lint-Nf5sAXLr.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`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:
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-Rsqng44G.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ powerlines`)} ${t.usage.command(`prepare`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/prepare.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"./prepare-BIckwpx0.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-Rsqng44G.mjs";import{t as b}from"./upgrade-CbOYYUL8.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./prepare-DzdEY2vL.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`█▀█ █▀█ █ █ █ █▀▀ █▀█ █ █ █▄ █ █▀▀ █▀▀`,`█▀▀ █▄█ ▀▄▀▄▀ ██▄ █▀▄ █▄▄ █ █ ▀█ ██▄ ▄▄█`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?`Powerlines`:`\n${a.join(`
2
2
  `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Prepare Artifacts`).length+2))/2),0))+g(c.banner.command.primary(`Prepare Artifacts`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Prepare Artifacts`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Generate the project's required build and deployment 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)).prepare(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: prepare
3
3
 
4
4
  Options: