powerlines 0.47.144 → 0.47.145
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.
- package/dist/config.mjs +0 -2
- package/dist/index.mjs +0 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/dist/plugin-utils.mjs +0 -2
- package/dist/storage.mjs +0 -2
- package/package.json +13 -13
- package/bin/bin.mjs +0 -8
- package/bin/build-DjyA6GQp.mjs +0 -1
- package/bin/build.mjs +0 -2
- package/bin/changelog-B8i9yY3P.mjs +0 -1
- package/bin/changelog.mjs +0 -524
- package/bin/clean-B9CJqZ1x.mjs +0 -1
- package/bin/clean.mjs +0 -2
- package/bin/completions-bash-config.mjs +0 -7
- package/bin/completions-bash-script.mjs +0 -7
- package/bin/completions-fish-config.mjs +0 -7
- package/bin/completions-fish-script.mjs +0 -7
- package/bin/completions-powershell-config.mjs +0 -7
- package/bin/completions-powershell-script.mjs +0 -7
- package/bin/completions-zsh-config.mjs +0 -7
- package/bin/completions-zsh-script.mjs +0 -7
- package/bin/config-BYBQBrQG.mjs +0 -1
- package/bin/config-C1fmmSMf.mjs +0 -1
- package/bin/config-CK793fTW.mjs +0 -1
- package/bin/config-Zf66j-rA.mjs +0 -1
- package/bin/create-DqStfXER.mjs +0 -1
- package/bin/create-powerlines-DvusHjN3.mjs +0 -1
- package/bin/create.mjs +0 -3
- package/bin/deploy-DnH_cRzq.mjs +0 -1
- package/bin/deploy.mjs +0 -2
- package/bin/docs-HAdp8uaP.mjs +0 -1
- package/bin/docs.mjs +0 -2
- package/bin/gc-DPUIueyK.mjs +0 -1
- package/bin/gc.mjs +0 -3
- package/bin/help.mjs +0 -3
- package/bin/lint-Ba5PLVn8.mjs +0 -1
- package/bin/lint.mjs +0 -2
- package/bin/prepare-CGt61HvT.mjs +0 -1
- package/bin/prepare.mjs +0 -2
- package/bin/prompts-D_Rv-lNz.mjs +0 -27
- package/bin/script-Bd5rrPMc.mjs +0 -1
- package/bin/script-DG76mLcM.mjs +0 -1
- package/bin/script-ad5QoVHh.mjs +0 -1
- package/bin/script-zD-5QlvH.mjs +0 -1
- package/bin/shared-BItwCZrh.mjs +0 -216
- package/bin/shared-HomY1B9h.mjs +0 -103
- package/bin/shared-ZYvIh4BL.mjs +0 -249
- package/bin/shared-l2cUQ8pt.mjs +0 -235
- package/bin/types-CK9oFG7L.mjs +0 -1
- package/bin/types.mjs +0 -2
- package/bin/update-ChLxGxOi.mjs +0 -1
- package/bin/update-ZLGSIorW.mjs +0 -1
- package/bin/update.mjs +0 -2
- package/bin/zsh-HSOqkRfN.mjs +0 -1
- package/dist/_virtual/_rolldown/runtime.mjs +0 -36
package/dist/config.mjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/package.cjs
CHANGED
package/dist/package.mjs
CHANGED
package/dist/plugin-utils.mjs
CHANGED
package/dist/storage.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.145",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The \"framework framework\" that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
|
|
6
6
|
"keywords": [
|
|
@@ -173,25 +173,25 @@
|
|
|
173
173
|
"files": ["dist", "bin", "files"],
|
|
174
174
|
"dependencies": {
|
|
175
175
|
"@babel/types": "^8.0.4",
|
|
176
|
-
"@powerlines/core": "^0.48.
|
|
177
|
-
"@powerlines/engine": "^0.49.
|
|
178
|
-
"@powerlines/schema": "^0.11.
|
|
179
|
-
"@powerlines/unplugin": "^0.0.
|
|
180
|
-
"@storm-software/config": "^1.138.
|
|
181
|
-
"@storm-software/config-tools": "^1.190.
|
|
182
|
-
"@stryke/convert": "^0.7.
|
|
183
|
-
"@stryke/env": "^0.20.
|
|
184
|
-
"@stryke/fs": "^0.33.
|
|
176
|
+
"@powerlines/core": "^0.48.66",
|
|
177
|
+
"@powerlines/engine": "^0.49.68",
|
|
178
|
+
"@powerlines/schema": "^0.11.127",
|
|
179
|
+
"@powerlines/unplugin": "^0.0.114",
|
|
180
|
+
"@storm-software/config": "^1.138.46",
|
|
181
|
+
"@storm-software/config-tools": "^1.190.109",
|
|
182
|
+
"@stryke/convert": "^0.7.27",
|
|
183
|
+
"@stryke/env": "^0.20.114",
|
|
184
|
+
"@stryke/fs": "^0.33.97",
|
|
185
185
|
"defu": "^6.1.7",
|
|
186
186
|
"unplugin": "^3.3.0"
|
|
187
187
|
},
|
|
188
188
|
"devDependencies": {
|
|
189
|
-
"@storm-software/testing-tools": "^1.119.
|
|
190
|
-
"@stryke/types": "^0.12.
|
|
189
|
+
"@storm-software/testing-tools": "^1.119.262",
|
|
190
|
+
"@stryke/types": "^0.12.24",
|
|
191
191
|
"@types/node": "^25.9.5",
|
|
192
192
|
"typescript": "^6.0.3",
|
|
193
193
|
"undici-types": "^7.28.0"
|
|
194
194
|
},
|
|
195
195
|
"publishConfig": { "access": "public" },
|
|
196
|
-
"gitHead": "
|
|
196
|
+
"gitHead": "d81170b608c0b80e7726e129c3edd1b7b6ca2605"
|
|
197
197
|
}
|
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};
|
package/bin/build-DjyA6GQp.mjs
DELETED
|
@@ -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};
|