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.
- 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/schema-bundle.cjs +58 -0
- package/dist/schema-bundle.d.cts +20 -0
- package/dist/schema-bundle.d.cts.map +1 -0
- package/dist/schema-bundle.d.mts +20 -0
- package/dist/schema-bundle.d.mts.map +1 -0
- package/dist/schema-bundle.mjs +56 -0
- package/dist/schema-bundle.mjs.map +1 -0
- package/dist/schema-resolve.cjs +86 -0
- package/dist/schema-resolve.d.cts +25 -0
- package/dist/schema-resolve.d.cts.map +1 -0
- package/dist/schema-resolve.d.mts +25 -0
- package/dist/schema-resolve.d.mts.map +1 -0
- package/dist/schema-resolve.mjs +85 -0
- package/dist/schema-resolve.mjs.map +1 -0
- package/dist/schema.cjs +16 -3
- package/dist/schema.d.cts +5 -1
- package/dist/schema.d.mts +5 -1
- package/dist/schema.mjs +7 -2
- package/dist/storage.mjs +0 -2
- package/package.json +28 -14
- 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
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,F as r,G as i,K as a,L as o,M as s,O as c,S as l,U as u,V as d,X as f,Y as p,Z as m,a as h,b as g,c as _,k as v,m as y,nt as b,q as x,r as S,s as C,t as w,tt as T,v as E,z as D}from"./prompts-D_Rv-lNz.mjs";import{t as O}from"./update-ChLxGxOi.mjs";import{n as k,t as A}from"./shared-HomY1B9h.mjs";import{t as j}from"./config-C1fmmSMf.mjs";import M from"node:os";import{join as N}from"node:path";import{readFile as P,writeFile as F}from"node:fs/promises";async function I(e=500){f().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),o(``),o(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+C(s.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log}),c(Math.max(...h.map(e=>v(e).length))>Math.max(D().columns+30,20)?`Powerlines`:`\n${h.join(`
|
|
2
|
-
`)}\n`,Math.max(D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+C(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(`Completions - Bash Configuration`).length+2))/2),0))+C(s.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((D().columns-(v(`Completions - Bash Configuration`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),c(C(s.banner.description.primary(`Update the current system's bash shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>D().columns/2?D().columns-6:D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(D().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-35,0)))+` `+C(s.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),n&&!a()&&await u(e))}async function L(e={},n=`~/.bashrc`){if(e.display!==!0){let e=n.includes(`.`)?n:N(n,`.bashrc`);e.startsWith(`~`)&&(e=N(M.homedir(),e.replace(`~`,``)));let i=``;try{i=await P(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)r(`Configuration file ${C(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await F(e,`${i}\n\n### Begin - Powerlines Shell Completions ###\n\n${A} \n\n### End - Powerlines Bash Completions ###`),t(`Powerlines shell completions have been applied to Bash configuration file at ${C(e)}. Please restart your terminal or run ${g(`source ${e}`)} for the changes to take effect.`)}else o(` ------------------------------------------------- `),o(``),o(`### Begin - Powerlines Bash Completions ###`),o(``),k.split(`
|
|
3
|
-
`).map(e=>o(e)),o(``),o(`### End - Powerlines Bash Completions ###`),o(``),o(` ------------------------------------------------- `),o(``),E(`To enable these completions, perform one of the following actions:
|
|
4
|
-
|
|
5
|
-
1) Copy and paste the above script into your shell configuration file (e.g., ~/.bashrc)
|
|
6
|
-
2) Save the above script to a file and source it from your shell configuration file `)}async function R(t=x()){let r={...p(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=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];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let i=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=i>4?4:Math.max(0,t.slice(i).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`~/.bashrc`;if(c+0<t.length&&c+0!==i&&(u=t[c+0]),await I(),await O(),a()||(o(``),(b||T||e.LOG_LEVEL===`debug`)&&o(s.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!a()&&u===void 0){if(o(``),!u){let e=await S({message:`Please provide a value for the ${l(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;u=e}o(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${l(`Completions - Bash Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
7
|
-
`)}`),r.help=!0)}return r.help?j():m(`completions/bash/config`,[`completions`,`bash`,`config`],[r,u],L)}export{R as handler};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,G as r,K as i,L as a,M as o,O as s,S as c,U as l,V as u,X as d,Y as f,Z as p,a as m,c as h,k as g,m as _,nt as v,q as y,r as b,s as x,t as S,tt as C,v as w,z as T}from"./prompts-D_Rv-lNz.mjs";import{t as E}from"./update-ChLxGxOi.mjs";import{t as D}from"./script-DG76mLcM.mjs";import{n as O,t as k}from"./shared-HomY1B9h.mjs";import{writeFile as A}from"node:fs/promises";async function j(e=500){d().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||u||(d().set(`is-banner-displayed`,!0),a(``),a(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+o.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+x(o.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-38,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log}),s(Math.max(...m.map(e=>g(e).length))>Math.max(T().columns+30,20)?`Powerlines`:`\n${m.join(`
|
|
2
|
-
`)}\n`,Math.max(T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+x(o.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(`Completions - Bash Script`).length+2))/2),0))+x(o.banner.command.primary(`Completions - Bash Script`))+` `.repeat(Math.max(Math.ceil((T().columns-(g(`Completions - Bash Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),s(x(o.banner.description.primary(`Generate a bash completion script for the Powerlines command-line interface.`)),Math.max(60>T().columns/2?T().columns-6:T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+o.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(T().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),a(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-35,0)))+` `+x(o.banner.footer.primary(`https://stormsoftware.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),a(``),n&&!i()&&await l(e))}async function M(e={},n=`./powerlines-completions.bash`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.bash`:n;await A(e,`# Bash script to add completions for Powerlines\n\n${k}`),t(`Powerlines Bash completion script has been generated at ${x(e)}.`)}else a(` ------------------------------------------------- `),a(``),a(`# Bash completion for Powerlines`),a(``),O.split(`
|
|
3
|
-
`).map(e=>a(e)),a(``),a(` ------------------------------------------------- `),a(``),w(`To enable these completions, perform one of the following actions:
|
|
4
|
-
|
|
5
|
-
1) Copy and paste the above script into your shell configuration file (e.g., ~/.bashrc)
|
|
6
|
-
2) Save the above script to a file and source it from your shell configuration file `)}async function N(t=y()){let r={...f(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=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];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let s=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,l=s>4?4:Math.max(0,t.slice(s).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`./powerlines-completions.bash`;if(l+0<t.length&&l+0!==s&&(u=t[l+0]),await j(),await E(),i()||(a(``),(v||C||e.LOG_LEVEL===`debug`)&&a(o.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!i()&&u===void 0){if(a(``),!u){let e=await b({message:`Please provide a value for the ${c(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(S(e))return;u=e}a(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(_(`The following validation failures were found while processing the user provided input, and must be corrected before the ${c(`Completions - Bash Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
7
|
-
`)}`),r.help=!0)}return r.help?D():p(`completions/bash/script`,[`completions`,`bash`,`script`],[r,u],M)}export{N as handler};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,F as r,G as i,K as a,L as o,M as s,O as c,S as l,U as u,V as d,X as f,Y as p,Z as m,a as h,b as g,c as _,k as v,m as y,nt as b,q as x,r as S,s as C,t as w,tt as T,v as E,z as D}from"./prompts-D_Rv-lNz.mjs";import{t as O}from"./update-ChLxGxOi.mjs";import{t as k}from"./config-BYBQBrQG.mjs";import{n as A,t as j}from"./shared-l2cUQ8pt.mjs";import M from"node:os";import{join as N}from"node:path";import{readFile as P,writeFile as F}from"node:fs/promises";async function I(e=500){f().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),o(``),o(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+C(s.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log}),c(Math.max(...h.map(e=>v(e).length))>Math.max(D().columns+30,20)?`Powerlines`:`\n${h.join(`
|
|
2
|
-
`)}\n`,Math.max(D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+C(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(`Completions - Fish Configuration`).length+2))/2),0))+C(s.banner.command.primary(`Completions - Fish Configuration`))+` `.repeat(Math.max(Math.ceil((D().columns-(v(`Completions - Fish Configuration`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),c(C(s.banner.description.primary(`Update the current system's Fish shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>D().columns/2?D().columns-6:D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(D().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-35,0)))+` `+C(s.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),n&&!a()&&await u(e))}async function L(e={},n=`~/.config/fish/config.fish`){if(e.display!==!0){let e=n.includes(`.`)?n:N(n,`.config`,`fish`,`config.fish`);e.startsWith(`~`)&&(e=N(M.homedir(),e.replace(`~`,``)));let i=``;try{i=await P(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)r(`Configuration file ${C(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await F(e,`${i}\n\n### Begin - Powerlines Fish Completions ###\n\n${j} \n\n### End - Powerlines Fish Completions ###`),t(`Powerlines shell completions have been applied to Fish configuration file at ${C(e)}. Please restart your terminal or run ${g(`source ${e}`)} for the changes to take effect.`)}else o(` ------------------------------------------------- `),o(``),o(`### Begin - Powerlines Fish Completions ###`),o(``),A.split(`
|
|
3
|
-
`).map(e=>o(e)),o(``),o(`### End - Powerlines Fish Completions ###`),o(``),o(` ------------------------------------------------- `),o(``),E(`To enable these completions, perform one of the following actions:
|
|
4
|
-
|
|
5
|
-
1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/fish/config.fish)
|
|
6
|
-
2) Save the above script to a file and source it from your shell configuration file `)}async function R(t=x()){let r={...p(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=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];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let i=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=i>4?4:Math.max(0,t.slice(i).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`~/.config/fish/config.fish`;if(c+0<t.length&&c+0!==i&&(u=t[c+0]),await I(),await O(),a()||(o(``),(b||T||e.LOG_LEVEL===`debug`)&&o(s.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!a()&&u===void 0){if(o(``),!u){let e=await S({message:`Please provide a value for the ${l(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;u=e}o(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${l(`Completions - Fish Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
7
|
-
`)}`),r.help=!0)}return r.help?k():m(`completions/fish/config`,[`completions`,`fish`,`config`],[r,u],L)}export{R as handler};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,G as r,K as i,L as a,M as o,O as s,S as c,U as l,V as u,X as d,Y as f,Z as p,a as m,c as h,k as g,m as _,nt as v,q as y,r as b,s as x,t as S,tt as C,v as w,z as T}from"./prompts-D_Rv-lNz.mjs";import{t as E}from"./update-ChLxGxOi.mjs";import{n as D,t as O}from"./shared-l2cUQ8pt.mjs";import{t as k}from"./script-zD-5QlvH.mjs";import{writeFile as A}from"node:fs/promises";async function j(e=500){d().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||u||(d().set(`is-banner-displayed`,!0),a(``),a(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+o.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+x(o.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-38,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log}),s(Math.max(...m.map(e=>g(e).length))>Math.max(T().columns+30,20)?`Powerlines`:`\n${m.join(`
|
|
2
|
-
`)}\n`,Math.max(T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+x(o.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(`Completions - Fish Script`).length+2))/2),0))+x(o.banner.command.primary(`Completions - Fish Script`))+` `.repeat(Math.max(Math.ceil((T().columns-(g(`Completions - Fish Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),s(x(o.banner.description.primary(`Generate a Fish completion script for the Powerlines command-line interface.`)),Math.max(60>T().columns/2?T().columns-6:T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+o.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(T().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),a(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-35,0)))+` `+x(o.banner.footer.primary(`https://stormsoftware.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),a(``),n&&!i()&&await l(e))}async function M(e={},n=`./powerlines-completions.fish`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.fish`:n;await A(e,`# Fish script to add completions for Powerlines\n\n${O}`),t(`Powerlines Fish completion script has been generated at ${x(e)}.`)}else a(` ------------------------------------------------- `),a(``),a(`# Fish completion for Powerlines`),a(``),D.split(`
|
|
3
|
-
`).map(e=>a(e)),a(``),a(` ------------------------------------------------- `),a(``),w(`To enable these completions, perform one of the following actions:
|
|
4
|
-
|
|
5
|
-
1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/fish/config.fish)
|
|
6
|
-
2) Save the above script to a file and source it from your shell configuration file `)}async function N(t=y()){let r={...f(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=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];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let s=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,l=s>4?4:Math.max(0,t.slice(s).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`./powerlines-completions.fish`;if(l+0<t.length&&l+0!==s&&(u=t[l+0]),await j(),await E(),i()||(a(``),(v||C||e.LOG_LEVEL===`debug`)&&a(o.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!i()&&u===void 0){if(a(``),!u){let e=await b({message:`Please provide a value for the ${c(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(S(e))return;u=e}a(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(_(`The following validation failures were found while processing the user provided input, and must be corrected before the ${c(`Completions - Fish Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
7
|
-
`)}`),r.help=!0)}return r.help?k():p(`completions/fish/script`,[`completions`,`fish`,`script`],[r,u],M)}export{N as handler};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,F as r,G as i,K as a,L as o,M as s,O as c,S as l,U as u,V as d,X as f,Y as p,Z as m,a as h,b as g,c as _,k as v,m as y,nt as b,q as x,r as S,s as C,t as w,tt as T,v as E,z as D}from"./prompts-D_Rv-lNz.mjs";import{t as O}from"./update-ChLxGxOi.mjs";import{n as k,t as A}from"./shared-ZYvIh4BL.mjs";import{t as j}from"./config-Zf66j-rA.mjs";import M from"node:os";import{join as N}from"node:path";import{readFile as P,writeFile as F}from"node:fs/promises";async function I(e=500){f().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),o(``),o(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+C(s.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log}),c(Math.max(...h.map(e=>v(e).length))>Math.max(D().columns+30,20)?`Powerlines`:`\n${h.join(`
|
|
2
|
-
`)}\n`,Math.max(D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+C(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(`Completions - PowerShell Configuration`).length+2))/2),0))+C(s.banner.command.primary(`Completions - PowerShell Configuration`))+` `.repeat(Math.max(Math.ceil((D().columns-(v(`Completions - PowerShell Configuration`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),c(C(s.banner.description.primary(`Update the current system's PowerShell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>D().columns/2?D().columns-6:D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(D().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-35,0)))+` `+C(s.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),n&&!a()&&await u(e))}async function L(e={},n=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`){if(e.display!==!0){let e=n.includes(`.`)?n:N(n,`Microsoft.PowerShell_profile.ps1`);e.startsWith(`~`)&&(e=N(M.homedir(),e.replace(`~`,``)));let i=``;try{i=await P(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)r(`Configuration file ${C(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await F(e,`${i}\n\n### Begin - Powerlines PowerShell Completions ###\n\n${A} \n\n### End - Powerlines PowerShell Completions ###`),t(`Powerlines shell completions have been applied to PowerShell configuration file at ${C(e)}. Please restart your terminal or run ${g(`source ${e}`)} for the changes to take effect.`)}else o(` ------------------------------------------------- `),o(``),o(`### Begin - Powerlines PowerShell Completions ###`),o(``),k.split(`
|
|
3
|
-
`).map(e=>o(e)),o(``),o(`### End - Powerlines PowerShell Completions ###`),o(``),o(` ------------------------------------------------- `),o(``),E(`To enable these completions, perform one of the following actions:
|
|
4
|
-
|
|
5
|
-
1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/powershell/Microsoft.PowerShell_profile.ps1)
|
|
6
|
-
2) Save the above script to a file and source it from your shell configuration file `)}async function R(t=x()){let r={...p(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=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];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let i=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=i>4?4:Math.max(0,t.slice(i).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`;if(c+0<t.length&&c+0!==i&&(u=t[c+0]),await I(),await O(),a()||(o(``),(b||T||e.LOG_LEVEL===`debug`)&&o(s.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!a()&&u===void 0){if(o(``),!u){let e=await S({message:`Please provide a value for the ${l(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;u=e}o(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${l(`Completions - PowerShell Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
7
|
-
`)}`),r.help=!0)}return r.help?j():m(`completions/powershell/config`,[`completions`,`powershell`,`config`],[r,u],L)}export{R as handler};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,G as r,K as i,L as a,M as o,O as s,S as c,U as l,V as u,X as d,Y as f,Z as p,a as m,c as h,k as g,m as _,nt as v,q as y,r as b,s as x,t as S,tt as C,v as w,z as T}from"./prompts-D_Rv-lNz.mjs";import{t as E}from"./update-ChLxGxOi.mjs";import{t as D}from"./script-Bd5rrPMc.mjs";import{n as O,t as k}from"./shared-ZYvIh4BL.mjs";import{writeFile as A}from"node:fs/promises";async function j(e=500){d().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||u||(d().set(`is-banner-displayed`,!0),a(``),a(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+o.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+x(o.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-38,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log}),s(Math.max(...m.map(e=>g(e).length))>Math.max(T().columns+30,20)?`Powerlines`:`\n${m.join(`
|
|
2
|
-
`)}\n`,Math.max(T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+x(o.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(`Completions - PowerShell Script`).length+2))/2),0))+x(o.banner.command.primary(`Completions - PowerShell Script`))+` `.repeat(Math.max(Math.ceil((T().columns-(g(`Completions - PowerShell Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),s(x(o.banner.description.primary(`Generate a PowerShell completion script for the Powerlines command-line interface.`)),Math.max(60>T().columns/2?T().columns-6:T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+o.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(T().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),a(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-35,0)))+` `+x(o.banner.footer.primary(`https://stormsoftware.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),a(``),n&&!i()&&await l(e))}async function M(e={},n=`./powerlines-completions.ps1`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.ps1`:n;await A(e,`# PowerShell script to add completions for Powerlines\n\n${k}`),t(`Powerlines PowerShell completion script has been generated at ${x(e)}.`)}else a(` ------------------------------------------------- `),a(``),a(`# PowerShell completions for Powerlines`),a(``),O.split(`
|
|
3
|
-
`).map(e=>a(e)),a(``),a(` ------------------------------------------------- `),a(``),w(`To enable these completions, perform one of the following actions:
|
|
4
|
-
|
|
5
|
-
1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/powershell/Microsoft.PowerShell_profile.ps1)
|
|
6
|
-
2) Save the above script to a file and source it from your shell configuration file `)}async function N(t=y()){let r={...f(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=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];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let s=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,l=s>4?4:Math.max(0,t.slice(s).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`./powerlines-completions.ps1`;if(l+0<t.length&&l+0!==s&&(u=t[l+0]),await j(),await E(),i()||(a(``),(v||C||e.LOG_LEVEL===`debug`)&&a(o.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!i()&&u===void 0){if(a(``),!u){let e=await b({message:`Please provide a value for the ${c(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(S(e))return;u=e}a(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(_(`The following validation failures were found while processing the user provided input, and must be corrected before the ${c(`Completions - PowerShell Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
7
|
-
`)}`),r.help=!0)}return r.help?D():p(`completions/powershell/script`,[`completions`,`powershell`,`script`],[r,u],M)}export{N as handler};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,F as r,G as i,K as a,L as o,M as s,O as c,S as l,U as u,V as d,X as f,Y as p,Z as m,a as h,b as g,c as _,k as v,m as y,nt as b,q as x,r as S,s as C,t as w,tt as T,v as E,z as D}from"./prompts-D_Rv-lNz.mjs";import{t as O}from"./update-ChLxGxOi.mjs";import{n as k,t as A}from"./shared-BItwCZrh.mjs";import{t as j}from"./config-CK793fTW.mjs";import M from"node:os";import{join as N}from"node:path";import{readFile as P,writeFile as F}from"node:fs/promises";async function I(e=500){f().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),o(``),o(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+C(s.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log}),c(Math.max(...h.map(e=>v(e).length))>Math.max(D().columns+30,20)?`Powerlines`:`\n${h.join(`
|
|
2
|
-
`)}\n`,Math.max(D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+C(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(`Completions - Zsh Configuration`).length+2))/2),0))+C(s.banner.command.primary(`Completions - Zsh Configuration`))+` `.repeat(Math.max(Math.ceil((D().columns-(v(`Completions - Zsh Configuration`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),c(C(s.banner.description.primary(`Update the current system's Zsh shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>D().columns/2?D().columns-6:D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(D().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-35,0)))+` `+C(s.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),n&&!a()&&await u(e))}async function L(e={},n=`~/.zshrc`){if(e.display!==!0){let e=n.includes(`.`)?n:N(n,`.zshrc`);e.startsWith(`~`)&&(e=N(M.homedir(),e.replace(`~`,``)));let i=``;try{i=await P(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)r(`Configuration file ${C(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await F(e,`${i}\n\n### Begin - Powerlines Shell Completions ###\n\n${A} \n\n### End - Powerlines Zsh Completions ###`),t(`Powerlines shell completions have been applied to Zsh configuration file at ${C(e)}. Please restart your terminal or run ${g(`source ${e}`)} for the changes to take effect.`)}else o(` ------------------------------------------------- `),o(``),o(`### Begin - Powerlines Zsh Completions ###`),o(``),k.split(`
|
|
3
|
-
`).map(e=>o(e)),o(``),o(`### End - Powerlines Zsh Completions ###`),o(``),o(` ------------------------------------------------- `),o(``),E(`To enable these completions, perform one of the following actions:
|
|
4
|
-
|
|
5
|
-
1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/zsh/.zshrc)
|
|
6
|
-
2) Save the above script to a file and source it from your shell configuration file `)}async function R(t=x()){let r={...p(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=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];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let i=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=i>4?4:Math.max(0,t.slice(i).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`~/.zshrc`;if(c+0<t.length&&c+0!==i&&(u=t[c+0]),await I(),await O(),a()||(o(``),(b||T||e.LOG_LEVEL===`debug`)&&o(s.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!a()&&u===void 0){if(o(``),!u){let e=await S({message:`Please provide a value for the ${l(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;u=e}o(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${l(`Completions - Zsh Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
7
|
-
`)}`),r.help=!0)}return r.help?j():m(`completions/zsh/config`,[`completions`,`zsh`,`config`],[r,u],L)}export{R as handler};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{$ as e,A as t,B as n,G as r,K as i,L as a,M as o,O as s,S as c,U as l,V as u,X as d,Y as f,Z as p,a as m,c as h,k as g,m as _,nt as v,q as y,r as b,s as x,t as S,tt as C,v as w,z as T}from"./prompts-D_Rv-lNz.mjs";import{t as E}from"./update-ChLxGxOi.mjs";import{t as D}from"./script-ad5QoVHh.mjs";import{n as O,t as k}from"./shared-BItwCZrh.mjs";import{writeFile as A}from"node:fs/promises";async function j(e=500){d().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||u||(d().set(`is-banner-displayed`,!0),a(``),a(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+o.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+x(o.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-38,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log}),s(Math.max(...m.map(e=>g(e).length))>Math.max(T().columns+30,20)?`Powerlines`:`\n${m.join(`
|
|
2
|
-
`)}\n`,Math.max(T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+x(o.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(`Completions - Zsh Script`).length+2))/2),0))+x(o.banner.command.primary(`Completions - Zsh Script`))+` `.repeat(Math.max(Math.ceil((T().columns-(g(`Completions - Zsh Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),s(x(o.banner.description.primary(`Generate a Zsh completion script for the Powerlines command-line interface.`)),Math.max(60>T().columns/2?T().columns-6:T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+o.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(T().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),a(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-35,0)))+` `+x(o.banner.footer.primary(`https://stormsoftware.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),a(``),n&&!i()&&await l(e))}async function M(e={},n=`powerlines-completions.zsh`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.zsh`:n;await A(e,`# Zsh script to add completions for Powerlines\n\n${k}`),t(`Powerlines Zsh completion script has been generated at ${x(e)}.`)}else a(` ------------------------------------------------- `),a(``),a(`#compdef powerlines `),a(`#compdef _powerlines powerlines`),a(``),a(`# Zsh completion for Powerlines`),a(``),O.split(`
|
|
3
|
-
`).map(e=>a(e)),a(``),a(` ------------------------------------------------- `),a(``),w(`To enable these completions, perform one of the following actions:
|
|
4
|
-
|
|
5
|
-
1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/zsh/.zshrc)
|
|
6
|
-
2) Save the above script to a file and source it from your shell configuration file `)}async function N(t=y()){let r={...f(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=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];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let s=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,l=s>4?4:Math.max(0,t.slice(s).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`powerlines-completions.zsh`;if(l+0<t.length&&l+0!==s&&(u=t[l+0]),await j(),await E(),i()||(a(``),(v||C||e.LOG_LEVEL===`debug`)&&a(o.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!i()&&u===void 0){if(a(``),!u){let e=await b({message:`Please provide a value for the ${c(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(S(e))return;u=e}a(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(_(`The following validation failures were found while processing the user provided input, and must be corrected before the ${c(`Completions - Zsh Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
7
|
-
`)}`),r.help=!0)}return r.help?D():p(`completions/zsh/script`,[`completions`,`zsh`,`script`],[r,u],M)}export{N as handler};
|
package/bin/config-BYBQBrQG.mjs
DELETED
|
@@ -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(`completions`)} ${n.usage.command(`fish`)} ${n.usage.command(`config`)} ${n.usage.args(`<path>`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`completions`)} ${n.usage.command(`fish`)} ${n.usage.command(`config`)} ${n.usage.options(`[options]`)} ${n.usage.args(`<path>`)}`),{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(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: true).`),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 Completions - Fish Configuration command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/fish/config`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
|
package/bin/config-C1fmmSMf.mjs
DELETED
|
@@ -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(`completions`)} ${n.usage.command(`bash`)} ${n.usage.command(`config`)} ${n.usage.args(`<path>`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`completions`)} ${n.usage.command(`bash`)} ${n.usage.command(`config`)} ${n.usage.options(`[options]`)} ${n.usage.args(`<path>`)}`),{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(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: true).`),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 Completions - Bash Configuration command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/bash/config`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
|
package/bin/config-CK793fTW.mjs
DELETED
|
@@ -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(`completions`)} ${n.usage.command(`zsh`)} ${n.usage.command(`config`)} ${n.usage.args(`<path>`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`completions`)} ${n.usage.command(`zsh`)} ${n.usage.command(`config`)} ${n.usage.options(`[options]`)} ${n.usage.args(`<path>`)}`),{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(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: true).`),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 Completions - Zsh Configuration command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/zsh/config`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
|
package/bin/config-Zf66j-rA.mjs
DELETED
|
@@ -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(`completions`)} ${n.usage.command(`powershell`)} ${n.usage.command(`config`)} ${n.usage.args(`<path>`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`completions`)} ${n.usage.command(`powershell`)} ${n.usage.command(`config`)} ${n.usage.options(`[options]`)} ${n.usage.args(`<path>`)}`),{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(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Should the generated completion script be written to console output instead of an actual file on disk? (default: true).`),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 Completions - PowerShell Configuration command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/powershell/config`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
|
package/bin/create-DqStfXER.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(`create`)} ${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 create.`),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 Create Project command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/create`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{createPowerlines as e}from"powerlines/engine";var t=`0.47.125`;async function n(n){let r=await e(n);return r.context.info(`🔌 Powerlines Engine v${t||`1.0.0`} is running...`),r}export{n as t};
|
package/bin/create.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{$ as e,B as t,G as n,K as r,L as i,M as a,O as o,S as s,U as c,V as l,X as u,Y as d,Z as f,a as p,c as m,k as h,m as g,nt as _,q as v,r as y,s as b,t as x,tt as S,z as C}from"./prompts-D_Rv-lNz.mjs";import{t as w}from"./update-ChLxGxOi.mjs";import{t as T}from"./create-powerlines-DvusHjN3.mjs";import{t as E}from"./create-DqStfXER.mjs";async function D(e=500){u().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||l||(u().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(`━`)+` `+b(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(`
|
|
2
|
-
`)}\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))+b(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(`Create Project`).length+2))/2),0))+b(a.banner.command.primary(`Create Project`))+` `.repeat(Math.max(Math.ceil((C().columns-(h(`Create Project`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b(a.banner.description.primary(`Create a new Powerlines project.`)),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)))+` `+b(a.banner.footer.primary(`https://stormsoftware.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),t&&!r()&&await c(e))}async function O(e){await(await T(e)).create(e)}async function k(n=v()){let o={...d()};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`)&&(/^--?(root)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?o.root=t.replace(/^--?(root)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):n.length>e+1&&(o.root=n[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}if(await D(),await w(),r()||(i(``),(_||S||e.LOG_LEVEL===`debug`)&&i(a.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!t)o.root||[].push(`Missing required "root" option`);else if(!r()&&o.root===void 0){if(i(``),!o.root){let e=await y({message:`Please provide a value for the ${s(`root`)} option`,description:`The root directory of the project to create. Defaults to the current working directory if not specified.`,validate(e){return!e||e.trim()===``?`A value must be provided for this option`:null}});if(x(e))return;o.root=e}i(``);let e=[];o.root||e.push(`Missing required "root" option`),e.length>0&&(g(`The following validation failures were found while processing the user provided input, and must be corrected before the ${s(`Create Project`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
|
-
`)}`),o.help=!0)}return o.help?E():f(`create`,[`create`],[o],O)}export{k as handler};
|
package/bin/deploy-DnH_cRzq.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(`deploy`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`deployment`)} ${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 deploy.`),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 Deploy command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/deploy`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
|
package/bin/deploy.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"./deploy-DnH_cRzq.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(`Deploy`).length+2))/2),0))+_(a.banner.command.primary(`Deploy`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Deploy`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Deploys the project and its generated assets/artifacts.`)),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)).deploy(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(`deploy`,[`deploy`],[n],w)}export{T as handler};
|
package/bin/docs-HAdp8uaP.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(`docs`)} ${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 generate documentation for.`),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 Generate Documentation command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/docs`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
|
package/bin/docs.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"./docs-HAdp8uaP.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(`Generate Documentation`).length+2))/2),0))+_(a.banner.command.primary(`Generate Documentation`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Generate Documentation`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Generate documentation for the project's source code.`)),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)).docs(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(`docs`,[`docs`],[n],w)}export{T as handler};
|
package/bin/gc-DPUIueyK.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(`gc`)} ${n.usage.args(`<data|cache|logs|temp|all>`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`gc`)} ${n.usage.options(`[options]`)} ${n.usage.args(`<data|cache|logs|temp|all>`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`garbage-collection`)} ${n.usage.args(`<data|cache|logs|temp|all>`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`garbage-collection`)} ${n.usage.options(`[options]`)} ${n.usage.args(`<data|cache|logs|temp|all>`)}`),{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(`--type <data|cache|logs|temp|all>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`The type of environment paths to clean up.`),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 Garbage Collection command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/gc`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
|
package/bin/gc.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{$ as e,B as t,G as n,K as r,L as i,M as a,O as o,S as s,U as c,V as l,X as u,Y as d,Z as f,a as p,c as m,k as h,m as g,n as _,nt as v,q as y,s as b,t as x,tt as S,z as C}from"./prompts-D_Rv-lNz.mjs";import{t as w}from"./update-ChLxGxOi.mjs";import{t as T}from"./create-powerlines-DvusHjN3.mjs";import{t as E}from"./gc-DPUIueyK.mjs";import{removeDirectory as D}from"@stryke/fs";async function O(e=500){u().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||l||(u().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(`━`)+` `+b(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(`
|
|
2
|
-
`)}\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))+b(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(`Garbage Collection`).length+2))/2),0))+b(a.banner.command.primary(`Garbage Collection`))+` `.repeat(Math.max(Math.ceil((C().columns-(h(`Garbage Collection`).length+2))/2),0))+m.banner.outline.primary(`┃`),{consoleFn:console.log}),o(b(a.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. Please 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>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)))+` `+b(a.banner.footer.primary(`https://stormsoftware.com`))+` `+m.banner.outline.primary(`━`.repeat(6))+m.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),t&&!r()&&await c(e))}async function k(e={},t=`all`){let n=await T({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 D(e)}))}async function A(n=y()){let o={...d()};for(let e=0;e<n.slice(0).length;e++){let t=n[e].length>3&&n[e].startsWith(`--`)?`--${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`-${n[e].slice(1).replaceAll(`-`,``)}`:n[e];(t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`type=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`type`||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`type=`)||t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`type`)&&(/^--?(type)=/.test(`-`+t.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?o.type=t.replace(/^--?(type)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):n.length>e+1&&(o.type=n[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}let c=Math.max(0,n.slice(2).findIndex(e=>e.startsWith(`-`)&&/^(type)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,l=c>2?2:Math.max(0,n.slice(c).findLastIndex(e=>e.startsWith(`-`)&&/^(type)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,u=`all`;if(l+0<n.length&&l+0!==c&&(u=n[l+0]),await O(),await w(),r()||(i(``),(v||S||e.LOG_LEVEL===`debug`)&&i(a.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!t){let e=[];[`data`,`cache`,`logs`,`temp`,`all`].includes(o.type)||e.push(`Invalid value provided for the \"type\" option - valid values include: data, cache, logs, temp, and all; provided: ${o.type}`),u||e.push(`Missing required "type" positional argument`)}else if(!r()&&u===void 0){if(i(``),!u){let e=await _({message:`Please select a value for the ${s(`type`)} argument`,description:`An argument that allows the user to specify a custom Type string value.`,options:[{value:`data`,label:`data`,description:`An argument that allows the user to specify a custom Type s...`},{value:`cache`,label:`cache`,description:`An argument that allows the user to specify a custom Type s...`},{value:`logs`,label:`logs`,description:`An argument that allows the user to specify a custom Type s...`},{value:`temp`,label:`temp`,description:`An argument that allows the user to specify a custom Type s...`},{value:`all`,label:`all`,description:`An argument that allows the user to specify a custom Type s...`}]});if(x(e))return;u=e}i(``);let e=[];[`data`,`cache`,`logs`,`temp`,`all`].includes(o.type)||e.push(`Invalid value provided for the \"type\" option - valid values include: data, cache, logs, temp, and all; provided: ${o.type}`),u||e.push(`Missing required "type" positional argument`),e.length>0&&(g(`The following validation failures were found while processing the user provided input, and must be corrected before the ${s(`Garbage Collection`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
|
-
`)}`),o.help=!0)}return o.help?E():f(`gc`,[`gc`],[o,u],k)}export{A as handler};
|
package/bin/help.mjs
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{$ as e,B as t,C as n,G as r,K as i,L as a,M as o,O as s,S as c,U as l,V as u,X as d,Y as f,Z as p,a as m,c as h,j as g,k as _,m as v,nt as y,q as b,r as x,s as S,t as C,tt as w,x as T,z as E}from"./prompts-D_Rv-lNz.mjs";import{a as D,i as O,n as k,o as A,r as j,t as M}from"./zsh-HSOqkRfN.mjs";import{t as N}from"./types-CK9oFG7L.mjs";import{t as P}from"./update-ChLxGxOi.mjs";import{t as F}from"./prepare-CGt61HvT.mjs";import{t as I}from"./lint-Ba5PLVn8.mjs";import{t as L}from"./gc-DPUIueyK.mjs";import{t as ee}from"./docs-HAdp8uaP.mjs";import{t as R}from"./deploy-DnH_cRzq.mjs";import{t as z}from"./create-DqStfXER.mjs";import{t as B}from"./clean-B9CJqZ1x.mjs";import{t as V}from"./build-DjyA6GQp.mjs";import{t as H}from"./changelog-B8i9yY3P.mjs";import{t as U}from"./script-Bd5rrPMc.mjs";import{t as W}from"./config-Zf66j-rA.mjs";import{t as G}from"./script-DG76mLcM.mjs";import{t as K}from"./config-C1fmmSMf.mjs";import{t as q}from"./script-ad5QoVHh.mjs";import{t as J}from"./config-CK793fTW.mjs";import{t as Y}from"./config-BYBQBrQG.mjs";import{t as X}from"./script-zD-5QlvH.mjs";import{t as Z}from"./update-ZLGSIorW.mjs";async function Q(e=500){d().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||u||(d().set(`is-banner-displayed`,!0),a(``),a(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+o.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+S(o.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(E().columns-38,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log}),s(Math.max(...m.map(e=>_(e).length))>Math.max(E().columns+30,20)?`Powerlines`:`\n${m.join(`
|
|
2
|
-
`)}\n`,Math.max(E().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((E().columns-(_(e).length+2))/2),0))+S(o.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((E().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((E().columns-(_(`Help`).length+2))/2),0))+S(o.banner.command.primary(`Help`))+` `.repeat(Math.max(Math.ceil((E().columns-(_(`Help`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),s(S(o.banner.description.primary(`Display command usage details and other useful information to the user.`)),Math.max(60>E().columns/2?E().columns-6:E().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((E().columns-(_(e).length+2))/2),0))+o.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((E().columns-(_(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(E().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),a(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(E().columns-35,0)))+` `+S(o.banner.footer.primary(`https://stormsoftware.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),a(``),t&&!i()&&await l(e))}function $(){a(`${S(o.heading.secondary(`Tags: `))} ${o.tags.utility?o.tags.utility(T(` Utility `)):o.tags.$default(T(` Utility `))}`,{padding:0}),a(``),a(S(o.heading.secondary(`Usage:`))),a(o.body.secondary(`${o.usage.bin(`>_ powerlines`)} ${o.usage.command(`help`)} ${o.usage.args(`<commands...>`)} ${o.usage.options(`[options]`)}`),{padding:0}),a(o.body.secondary(`${o.usage.bin(`>_ powerlines`)} ${o.usage.command(`help`)} ${o.usage.options(`[options]`)} ${o.usage.args(`<commands...>`)}`),{padding:0}),a(``),a(S(o.heading.secondary(`Options:`))),g([[{value:o.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:o.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:o.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:o.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.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:o.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.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:o.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.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:o.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:o.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.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:o.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:o.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:o.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:o.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`}]]),a(``),a(o.body.tertiary(`More information can be found in the Help command documentation at ${n(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/help`)}${o.body.tertiary(`.`)}`),{padding:0}),a(``)}async function te(e=[]){e.join(`/`).toLowerCase()===`build`?V():e.join(`/`).toLowerCase()===`changelog`?H():e.join(`/`).toLowerCase()===`clean`?B():e.join(`/`).toLowerCase()===`completions`?D():e.join(`/`).toLowerCase()===`completions/bash`?O():e.join(`/`).toLowerCase()===`completions/bash/config`?K():e.join(`/`).toLowerCase()===`completions/bash/script`?G():e.join(`/`).toLowerCase()===`completions/fish`?j():e.join(`/`).toLowerCase()===`completions/fish/config`?Y():e.join(`/`).toLowerCase()===`completions/fish/script`?X():e.join(`/`).toLowerCase()===`completions/powershell`?k():e.join(`/`).toLowerCase()===`completions/powershell/config`?W():e.join(`/`).toLowerCase()===`completions/powershell/script`?U():e.join(`/`).toLowerCase()===`completions/zsh`?M():e.join(`/`).toLowerCase()===`completions/zsh/config`?J():e.join(`/`).toLowerCase()===`completions/zsh/script`?q():e.join(`/`).toLowerCase()===`create`?z():e.join(`/`).toLowerCase()===`deploy`?R():e.join(`/`).toLowerCase()===`docs`?ee():e.join(`/`).toLowerCase()===`gc`?L():e.join(`/`).toLowerCase()===`help`?$():e.join(`/`).toLowerCase()===`lint`?I():e.join(`/`).toLowerCase()===`prepare`?F():e.join(`/`).toLowerCase()===`types`?N():e.join(`/`).toLowerCase()===`update`?Z():A()}async function ne(n=b()){let r={...f()};for(let e=0;e<n.slice(0).length;e++)n[e].length>3&&n[e].startsWith(`--`)?`${n[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:n[e].length>2&&n[e].startsWith(`-`)?`${n[e].slice(1).replaceAll(`-`,``)}`:n[e];let s=Math.max(0,n.slice(2).findIndex(e=>e.startsWith(`-`)&&/^()=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,l=s>2?2:Math.max(0,n.slice(s).findLastIndex(e=>e.startsWith(`-`)&&/^()=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+2,u=[];if(l+0<n.length&&l+0!==s&&(u=n.slice(l+0,(s>l?s:n.length)-1).join(` `).split(`,`).map(e=>e.trim().replace(/^("|')/,``).replace(/("|')$/,``)).filter(Boolean)),await Q(),await P(),i()||(a(``),(y||w||e.LOG_LEVEL===`debug`)&&a(o.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!t){let e=[];u?u.length===0&&e.push(`No values were provided to the required "commands" array positional argument`):e.push(`Missing required "commands" positional argument`)}else if(!i()&&(!u||u.length===0)){if(a(``),!u){let e=await x({message:`Please provide a value for the ${c(`commands`)} argument`,description:`An argument that allows the user to specify custom Commands...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(C(e))return;u=e}else if(u.length===0){let e=await x({message:`Please provide one or more values for the ${c(`commands`)} argument (values are separated by a \",\" character)`,description:`An argument that allows the user to specify custom Commands...`,validate(e){if(!e||e.trim()===``)return`A value must be provided for this argument`;if(e.split(`,`).map(e=>e.trim()).filter(Boolean).length===0)return`At least one value must be provided for this argument`}});if(C(e))return;u=e.split(`,`).map(e=>e.trim()).filter(Boolean)}a(``);let e=[];u?u.length===0&&e.push(`No values were provided to the required "commands" array positional argument`):e.push(`Missing required "commands" positional argument`),e.length>0&&(v(`The following validation failures were found while processing the user provided input, and must be corrected before the ${c(`Help`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
|
|
3
|
-
`)}`),r.help=!0)}return r.help?$():p(`help`,[`help`],[u],te)}export{ne as handler};
|
package/bin/lint-Ba5PLVn8.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(`lint`)} ${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 lint.`),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 Lint Source Code command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/lint`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
|
package/bin/lint.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"./lint-Ba5PLVn8.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(`Lint Source Code`).length+2))/2),0))+_(a.banner.command.primary(`Lint Source Code`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Lint Source Code`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Lint the project's source code for style and syntax errors.`)),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)).lint(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(`lint`,[`lint`],[n],w)}export{T as handler};
|
package/bin/prepare-CGt61HvT.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(`prepare`)} ${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 prepare.`),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 Prepare Artifacts command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/prepare`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
|
package/bin/prepare.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"./prepare-CGt61HvT.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(`Prepare Artifacts`).length+2))/2),0))+_(a.banner.command.primary(`Prepare Artifacts`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Prepare Artifacts`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Generate the project's required build and deployment artifacts.`)),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)).prepare(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(`prepare`,[`prepare`],[n],w)}export{T as handler};
|