powerlines 0.47.143 → 0.47.145

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/config.mjs +0 -2
  2. package/dist/index.mjs +0 -1
  3. package/dist/package.cjs +1 -1
  4. package/dist/package.mjs +1 -1
  5. package/dist/plugin-utils.mjs +0 -2
  6. package/dist/storage.mjs +0 -2
  7. package/package.json +13 -13
  8. package/bin/bin.mjs +0 -8
  9. package/bin/build-C0LGKkOx.mjs +0 -1
  10. package/bin/build.mjs +0 -2
  11. package/bin/changelog-DKWl63sN.mjs +0 -1
  12. package/bin/changelog.mjs +0 -524
  13. package/bin/clean-CQBExjD5.mjs +0 -1
  14. package/bin/clean.mjs +0 -2
  15. package/bin/completions-bash-config.mjs +0 -7
  16. package/bin/completions-bash-script.mjs +0 -7
  17. package/bin/completions-fish-config.mjs +0 -7
  18. package/bin/completions-fish-script.mjs +0 -7
  19. package/bin/completions-powershell-config.mjs +0 -7
  20. package/bin/completions-powershell-script.mjs +0 -7
  21. package/bin/completions-zsh-config.mjs +0 -7
  22. package/bin/completions-zsh-script.mjs +0 -7
  23. package/bin/config-B8UkduSY.mjs +0 -1
  24. package/bin/config-BQpmsBid.mjs +0 -1
  25. package/bin/config-Bk72yHyy.mjs +0 -1
  26. package/bin/config-C8plTze2.mjs +0 -1
  27. package/bin/create-D8o_hD1H.mjs +0 -1
  28. package/bin/create-powerlines-DvusHjN3.mjs +0 -1
  29. package/bin/create.mjs +0 -3
  30. package/bin/deploy-FLyfysqZ.mjs +0 -1
  31. package/bin/deploy.mjs +0 -2
  32. package/bin/docs-ChdgJWT4.mjs +0 -1
  33. package/bin/docs.mjs +0 -2
  34. package/bin/gc-CHyaLpCw.mjs +0 -1
  35. package/bin/gc.mjs +0 -3
  36. package/bin/help.mjs +0 -3
  37. package/bin/lint-D3Q5JUUP.mjs +0 -1
  38. package/bin/lint.mjs +0 -2
  39. package/bin/prepare-DeEPJ0_s.mjs +0 -1
  40. package/bin/prepare.mjs +0 -2
  41. package/bin/prompts-sYsQpm94.mjs +0 -27
  42. package/bin/script-BQWdbi_d.mjs +0 -1
  43. package/bin/script-C7Ls2jwf.mjs +0 -1
  44. package/bin/script-CT91mUsz.mjs +0 -1
  45. package/bin/script-D-AVLmQl.mjs +0 -1
  46. package/bin/shared-B8XZJ-3g.mjs +0 -103
  47. package/bin/shared-BEFPDUUR.mjs +0 -216
  48. package/bin/shared-BR7AgbNn.mjs +0 -235
  49. package/bin/shared-CiLBMwRC.mjs +0 -249
  50. package/bin/types-BPOmK3pJ.mjs +0 -1
  51. package/bin/types.mjs +0 -2
  52. package/bin/update-B-bAAu6W.mjs +0 -1
  53. package/bin/update-B5XbnMLw.mjs +0 -1
  54. package/bin/update.mjs +0 -2
  55. package/bin/zsh-liDl2hv7.mjs +0 -1
  56. package/dist/_virtual/_rolldown/runtime.mjs +0 -36
@@ -1,249 +0,0 @@
1
- import{D as e,E as t,I as n,T as r,_ as i,d as a,g as o,h as s,p as c,s as l,u,w as d}from"./prompts-sYsQpm94.mjs";const f=`# powershell completion for Powerlines
2
-
3
- [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
4
- function __powerlines_debug {
5
- if ($env:BASH_COMP_DEBUG_FILE) {
6
- "$args" | Out-File -Append -FilePath "$env:BASH_COMP_DEBUG_FILE"
7
- }
8
- }
9
-
10
- filter __powerlines_escapeStringWithSpecialChars {
11
- $_ -replace 's|#|@|$|;|,|''|{|}|(|)|"|||<|>|&','\`$&'
12
- }
13
-
14
- [scriptblock]$__powerlinesCompleterBlock = {
15
- param(
16
- $WordToComplete,
17
- $CommandAst,
18
- $CursorPosition
19
- )
20
-
21
- # Get the current command-line and convert into a string
22
- $Command = $CommandAst.CommandElements
23
- $Command = "$Command"
24
-
25
- __powerlines_debug ""
26
- __powerlines_debug "========= starting completion logic =========="
27
- __powerlines_debug "WordToComplete: $WordToComplete Command: $Command CursorPosition: $CursorPosition"
28
-
29
- # The user could have moved the cursor backwards on the command-line.
30
- # We need to trigger completion from the $CursorPosition location, so we need
31
- # to truncate the command-line ($Command) up to the $CursorPosition location.
32
- # Make sure the $Command is longer then the $CursorPosition before we truncate.
33
- # This happens because the $Command does not include the last space.
34
- if ($Command.Length -gt $CursorPosition) {
35
- $Command = $Command.Substring(0, $CursorPosition)
36
- }
37
- __powerlines_debug "Truncated command: $Command"
38
-
39
- $ShellCompDirectiveError=1
40
- $ShellCompDirectiveNoSpace=2
41
- $ShellCompDirectiveNoFileComp=4
42
- $ShellCompDirectiveFilterFileExt=8
43
- $ShellCompDirectiveFilterDirs=16
44
- $ShellCompDirectiveKeepOrder=32
45
-
46
- # Prepare the command to request completions for the program.
47
- # Split the command at the first space to separate the program and arguments.
48
- $Program, $Arguments = $Command.Split(" ", 2)
49
-
50
- $QuotedArgs = ($Arguments -split ' ' | ForEach-Object { "'" + ($_ -replace "'", "''") + "'" }) -join ' '
51
- __powerlines_debug "QuotedArgs: $QuotedArgs"
52
-
53
- $RequestComp = "& /nix/store/gs92iwk7ga73klqy176ppw4v292fpmlq-nodejs-slim-26.4.0/bin/node /home/runner/work/powerlines/powerlines/node_modules/.pnpm/nx@23.0.1_@swc-node+register@1.11.1_@swc+core@1.15.43_@swc+helpers@0.5.23__@swc+types@0_8e3dcc932a61eeca7d9982114458b00b/node_modules/nx/dist/bin/run-executor.js complete '--' $QuotedArgs"
54
- __powerlines_debug "RequestComp: $RequestComp"
55
-
56
- # we cannot use $WordToComplete because it
57
- # has the wrong values if the cursor was moved
58
- # so use the last argument
59
- if ($WordToComplete -ne "" ) {
60
- $WordToComplete = $Arguments.Split(" ")[-1]
61
- }
62
- __powerlines_debug "New WordToComplete: $WordToComplete"
63
-
64
-
65
- # Check for flag with equal sign
66
- $IsEqualFlag = ($WordToComplete -Like "--*=*" )
67
- if ( $IsEqualFlag ) {
68
- __powerlines_debug "Completing equal sign flag"
69
- # Remove the flag part
70
- $Flag, $WordToComplete = $WordToComplete.Split("=", 2)
71
- }
72
-
73
- if ( $WordToComplete -eq "" -And ( -Not $IsEqualFlag )) {
74
- # If the last parameter is complete (there is a space following it)
75
- # We add an extra empty parameter so we can indicate this to the go method.
76
- __powerlines_debug "Adding extra empty parameter"
77
- # PowerShell 7.2+ changed the way how the arguments are passed to executables,
78
- # so for pre-7.2 or when Legacy argument passing is enabled we need to use
79
- if ($PSVersionTable.PsVersion -lt [version]'7.2.0' -or
80
- ($PSVersionTable.PsVersion -lt [version]'7.3.0' -and -not [ExperimentalFeature]::IsEnabled("PSNativeCommandArgumentPassing")) -or
81
- (($PSVersionTable.PsVersion -ge [version]'7.3.0' -or [ExperimentalFeature]::IsEnabled("PSNativeCommandArgumentPassing")) -and
82
- $PSNativeCommandArgumentPassing -eq 'Legacy')) {
83
- $RequestComp="$RequestComp" + ' \`"\`"'
84
- } else {
85
- $RequestComp = "$RequestComp" + ' ""'
86
- }
87
- }
88
-
89
- __powerlines_debug "Calling $RequestComp"
90
- # First disable ActiveHelp which is not supported for Powershell
91
- $env:ActiveHelp = 0
92
-
93
- # call the command store the output in $out and redirect stderr and stdout to null
94
- # $Out is an array contains each line per element
95
- Invoke-Expression -OutVariable out "$RequestComp" 2>&1 | Out-Null
96
-
97
- # get directive from last line
98
- [int]$Directive = $Out[-1].TrimStart(':')
99
- if ($Directive -eq "") {
100
- # There is no directive specified
101
- $Directive = 0
102
- }
103
- __powerlines_debug "The completion directive is: $Directive"
104
-
105
- # remove directive (last element) from out
106
- $Out = $Out | Where-Object { $_ -ne $Out[-1] }
107
- __powerlines_debug "The completions are: $Out"
108
- if (($Directive -band $ShellCompDirectiveError) -ne 0 ) {
109
- # Error code. No completion.
110
- __powerlines_debug "Received error from custom completion go code"
111
- return
112
- }
113
-
114
- $Longest = 0
115
- [Array]$Values = $Out | ForEach-Object {
116
- # Split the output in name and description
117
- $Name, $Description = $_.Split("\`t", 2)
118
- __powerlines_debug "Name: $Name Description: $Description"
119
-
120
- # Look for the longest completion so that we can format things nicely
121
- if ($Longest -lt $Name.Length) {
122
- $Longest = $Name.Length
123
- }
124
-
125
- # Set the description to a one space string if there is none set.
126
- # This is needed because the CompletionResult does not accept an empty string as argument
127
- if (-Not $Description) {
128
- $Description = " "
129
- }
130
- @{ Name = "$Name"; Description = "$Description" }
131
- }
132
-
133
-
134
- $Space = " "
135
- if (($Directive -band $ShellCompDirectiveNoSpace) -ne 0 ) {
136
- # remove the space here
137
- __powerlines_debug "ShellCompDirectiveNoSpace is called"
138
- $Space = ""
139
- }
140
-
141
- if ((($Directive -band $ShellCompDirectiveFilterFileExt) -ne 0 ) -or
142
- (($Directive -band $ShellCompDirectiveFilterDirs) -ne 0 )) {
143
- __powerlines_debug "ShellCompDirectiveFilterFileExt ShellCompDirectiveFilterDirs are not supported"
144
-
145
- # return here to prevent the completion of the extensions
146
- return
147
- }
148
-
149
- $Values = $Values | Where-Object {
150
- # filter the result
151
- $_.Name -like "$WordToComplete*"
152
-
153
- # Join the flag back if we have an equal sign flag
154
- if ( $IsEqualFlag ) {
155
- __powerlines_debug "Join the equal sign flag back to the completion value"
156
- $_.Name = $Flag + "=" + $_.Name
157
- }
158
- }
159
-
160
- # we sort the values in ascending order by name if keep order isn't passed
161
- if (($Directive -band $ShellCompDirectiveKeepOrder) -eq 0 ) {
162
- $Values = $Values | Sort-Object -Property Name
163
- }
164
-
165
- if (($Directive -band $ShellCompDirectiveNoFileComp) -ne 0 ) {
166
- __powerlines_debug "ShellCompDirectiveNoFileComp is called"
167
-
168
- if ($Values.Length -eq 0) {
169
- # Just print an empty string here so the
170
- # shell does not start to complete paths.
171
- # We cannot use CompletionResult here because
172
- # it does not accept an empty string as argument.
173
- ""
174
- return
175
- }
176
- }
177
-
178
- # Get the current mode
179
- $Mode = (Get-PSReadLineKeyHandler | Where-Object { $_.Key -eq "Tab" }).Function
180
- __powerlines_debug "Mode: $Mode"
181
-
182
- $Values | ForEach-Object {
183
-
184
- # store temporary because switch will overwrite $_
185
- $comp = $_
186
-
187
- # PowerShell supports three different completion modes
188
- # - TabCompleteNext (default windows style - on each key press the next option is displayed)
189
- # - Complete (works like bash)
190
- # - MenuComplete (works like zsh)
191
- # You set the mode with Set-PSReadLineKeyHandler -Key Tab -Function <mode>
192
-
193
- # CompletionResult Arguments:
194
- # 1) CompletionText text to be used as the auto completion result
195
- # 2) ListItemText text to be displayed in the suggestion list
196
- # 3) ResultType type of completion result
197
- # 4) ToolTip text for the tooltip with details about the object
198
-
199
- switch ($Mode) {
200
-
201
- # bash like
202
- "Complete" {
203
-
204
- if ($Values.Length -eq 1) {
205
- __powerlines_debug "Only one completion left"
206
-
207
- # insert space after value
208
- [System.Management.Automation.CompletionResult]::new($($comp.Name | __powerlines_escapeStringWithSpecialChars) + $Space, "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
209
-
210
- } else {
211
- # Add the proper number of spaces to align the descriptions
212
- while($comp.Name.Length -lt $Longest) {
213
- $comp.Name = $comp.Name + " "
214
- }
215
-
216
- # Check for empty description and only add parentheses if needed
217
- if ($($comp.Description) -eq " " ) {
218
- $Description = ""
219
- } else {
220
- $Description = " ($($comp.Description))"
221
- }
222
-
223
- [System.Management.Automation.CompletionResult]::new("$($comp.Name)$Description", "$($comp.Name)$Description", 'ParameterValue', "$($comp.Description)")
224
- }
225
- }
226
-
227
- # zsh like
228
- "MenuComplete" {
229
- # insert space after value
230
- # MenuComplete will automatically show the ToolTip of
231
- # the highlighted value at the bottom of the suggestions.
232
- [System.Management.Automation.CompletionResult]::new($($comp.Name | __powerlines_escapeStringWithSpecialChars) + $Space, "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
233
- }
234
-
235
- # TabCompleteNext and in case we get something unknown
236
- Default {
237
- # Like MenuComplete but we don't want to add a space here because
238
- # the user need to press space anyway to get the completion.
239
- # Description will not be shown because that's not possible with TabCompleteNext
240
- [System.Management.Automation.CompletionResult]::new($($comp.Name | __powerlines_escapeStringWithSpecialChars), "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
241
- }
242
- }
243
- }
244
- }
245
-
246
- Register-ArgumentCompleter -CommandName 'powerlines' -ScriptBlock $__powerlinesCompleterBlock
247
- `,p=f.split(`
248
- `).map(f=>f.trim()?f.trim().startsWith(`#`)?`${c(f)}`:n(f).replaceAll(/(?<=\$(\{|\()).*(?=(\}\)))/g,o(`$&`)).replaceAll(/\".*\"/g,u(`$&`)).replaceAll(/(\[|\]|\(|\)|\||<|>|\$\(|\$?\{|\}|\+|=|;|::new|::OutputEncoding|::UTF8)/g,l(s(`$&`))).replaceAll(/(switch|complete)\s+/g,o(`$&`)).replaceAll(/(?<=(switch|complete)\s+)\w/g,l(i(`$&`))).replaceAll(/(Get-PSReadLineKeyHandler|Where-Object|ExperimentalFeature|Console|ScriptBlock|Array|ForEach-Object|Register-ArgumentCompleter|System.Management.Automation.CompletionResult|$\w+)\s+/g,t(`$&`)).replaceAll(/(?<=(Get-PSReadLineKeyHandler|Where-Object|ExperimentalFeature|Console|ScriptBlock|Array|ForEach-Object|Register-ArgumentCompleter|System.Management.Automation.CompletionResult|$\w+)\s+)\w/g,l(e(`$&`))).replaceAll(/while\s+/g,u(`$&`)).replaceAll(/(?<=while\s+)\w/g,l(a(`$&`))).replaceAll(/(if|fi|else|elif|then|done)\s+/g,o(`$&`)).replaceAll(/\$?__\w/g,l(r(`$&`))).replaceAll(/(?<=\s)(-\w|--\w[\w-]*)(?=\s|$)/g,l(d(`$&`))):``).join(`
249
- `);export{p as n,f as t};
@@ -1 +0,0 @@
1
- import{C as e,L as t,M as n,j as r,s as i}from"./prompts-sYsQpm94.mjs";function a(){t(``),t(i(n.heading.secondary(`Usage:`))),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`types`)} ${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 types 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 Typescript Declarations command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/types`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
package/bin/types.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-sYsQpm94.mjs";import{t as b}from"./update-B-bAAu6W.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./types-BPOmK3pJ.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 Typescript Declarations`).length+2))/2),0))+_(a.banner.command.primary(`Generate Typescript Declarations`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Generate Typescript Declarations`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Generate a Typescript declaration (dts) file for the project.`)),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)).types(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(`types`,[`types`],[n],w)}export{T as handler};
@@ -1 +0,0 @@
1
- import{$ as e,B as t,E as n,L as r,M as i,W as a,b as o,et as s,f as c,g as l,i as u,it as d,l as f,rt as p,v as m,y as h}from"./prompts-sYsQpm94.mjs";import g from"node:os";import{join as _,resolve as v}from"node:path";import{existsSync as y}from"node:fs";import b from"node:process";import{mkdir as x,readFile as S,writeFile as C}from"node:fs/promises";const w=g.homedir(),T=g.tmpdir();async function E(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let r=_(t,`package.json`);if(y(r))if(e.isDependencyRequired){let e=JSON.parse(await S(r,`utf8`));if(Object.keys(e.dependencies||{}).concat(Object.keys(e.devDependencies||{})).concat(Object.keys(e.peerDependencies||{})).concat(Object.keys(e.optionalDependencies||{})).some(e=>e===`@powerlines/cli`||e.startsWith(`@powerlines/cli@`)))return r}else return r;else t=n,n=v(t,`..`)}}function D(e={}){let t=e.cwd??b.cwd(),n=v(t,`..`);for(;n!==t&&t!==w&&t!==T;){let e=[`package-lock.json`,`npm-shrinkwrap.json`,`yarn.lock`,`pnpm-lock.yaml`,`pnpm-workspace.yaml`,`deno.lock`,`deno.json`,`deno.jsonc`,`bun.lock`,`bun.lockb`].find(e=>y(_(t,e)));if(e)return e;t=n,n=v(t,`..`)}}async function O(e={}){let t=b.env.npm_config_user_agent??``,n=b.env.npm_execpath??``;if(t.startsWith(`yarn`)||n.includes(`yarn`))return`yarn`;if(t.startsWith(`pnpm`)||n.includes(`pnpm`))return`pnpm`;if(t.startsWith(`bun`)||n.includes(`bun`)||b.versions.bun)return`bun`;{let t=D(e);if(t===`yarn.lock`)return`yarn`;if(t===`deno.lock`||t===`deno.json`||t===`deno.jsonc`)return`deno`;if(t===`pnpm-lock.yaml`||t===`pnpm-workspace.yaml`)return`pnpm`;if(t===`bun.lock`||t===`bun.lockb`)return`bun`;{let t=await E(e);if(t&&y(t)){let e=JSON.parse(await S(t,`utf8`));if(e.devEngines?.packageManager?.name&&typeof e.devEngines.packageManager.name==`string`&&[`npm`,`yarn`,`pnpm`,`deno`,`bun`].includes(e.devEngines.packageManager.name))return e.devEngines.packageManager.name;let n={...e.dependencies,...e.devDependencies,...e.peerDependencies,...e.optionalDependencies};if(Object.keys(n).some(e=>e===`yarn`||e.startsWith(`yarn@`)||e===`yarnpkg`||e.startsWith(`yarnpkg@`)))return`yarn`;if(Object.keys(n).some(e=>e===`bun`||e.startsWith(`bun@`)))return`bun`;if(Object.keys(n).some(e=>e===`pnpm`||e.startsWith(`pnpm@`)))return`pnpm`;if(Object.keys(n).some(e=>e===`deno`||e.startsWith(`deno@`)))return`deno`}return`npm`}}}async function k(e){let t=await fetch(`https://registry.npmjs.com/-/v1/search?text=${e}&size=1`).then(e=>e.json());if(t.objects&&t.objects.length>0&&t.objects[0].package&&t.objects[0].package.name===e)return t.objects[0].package}async function A(e=`@powerlines/cli`){return(await k(e))?.version}async function j(e,t=b.cwd()){let n=await A(`@powerlines/cli`)||`latest`;return e===`yarn`?[`upgrade`,`@powerlines/cli@${n}`]:e===`pnpm`?[`update`,`@powerlines/cli@${n}`]:e===`deno`?[`outdated`,`--update`,`@powerlines/cli@${n}`]:e===`bun`?[`update`,`--save`,`@powerlines/cli@${n}`]:[`update`,`--save`,`--bin-links`,`@powerlines/cli@${n}`]}async function M(e={}){let t=await O(e),n=await j(t,e.cwd),r=``;await a(`${t}${p&&t!==`bun`?`.cmd`:``}`,[n.join(` `)],{...e,env:{...e.env,...t===`pnpm`?{npm_config_strict_peer_dependencies:!1}:null},stdout:t=>{e.stdout?.(t),r+=t},stderr:t=>{e.stderr?.(t)}})}async function N(e={}){if(!e.force&&!await P())return{latestVersion:`0.47.125`,currentVersion:`0.47.125`,isUpToDate:!0,isError:!1};try{let e=await k(`@powerlines/cli`);return{latestVersion:e?.version||`0.47.125`,currentVersion:`0.47.125`,isUpToDate:!e||e.version===`0.47.125`,package:e,isError:!1}}catch(e){return{isError:!0,error:e instanceof Error?e:Error(String(e))}}}async function P(){if(!t||s||e.SKIP_UPDATE_CHECK)return!1;let n=_(d.data,`update-check.json`);if(y(n)){let e=JSON.parse(await S(n,`utf8`));if(!e.timestamp)return await F(),!0;if(new Date().getTime()-e.timestamp<1296e5)return!1}else return await F(),!0}async function F(){y(d.data)||await x(d.data,{recursive:!0}),await C(_(d.data,`update-check.json`),JSON.stringify({timestamp:new Date().getTime()}),`utf8`)}async function I(){if(await P()){let e=f({message:`Checking for updates...`}).start(),t=await N({force:!0});if(t?.isError)e.error(`An error occurred while checking for Powerlines application updates. Please try again later - if the problem persists, please contact support.`),c(t.error);else if(t?.isUpToDate)e.success(`Currently running the latest version of Powerlines.`),r(``);else{e.stop(),h(`A new version of Powerlines is available: ${n(`v${t.currentVersion}`)} ${i.body.tertiary(`➜`)} ${l(`v${t.latestVersion}`)}${t.package?.date?i.body.tertiary(` (updated on ${t.package?.date})`):``}`);try{await M(),e.success(`Update successful! Please restart the application to apply the update.`),r(``),m(`The changelog for this release can be viewed by running the ${o(`powerlines changelog`)} command.`),r(``),r(`Press any key to exit the application...`),await u();return}catch(n){e.error(`An error occurred while updating Powerlines to v${t.latestVersion}. Please try again later - if the problem persists, please contact support.`),c(n)}}}}export{I as t};
@@ -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-sYsQpm94.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(`update`)} ${n.usage.options(`[options]`)}`),{padding:0}),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`upgrade`)} ${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(`--latest`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`Whether to update to the latest version (default: true).`),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(`--version <version>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:n.body.tertiary(`A specific application version to update to (default: "latest").`),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 Update command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/update`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{o as t};
package/bin/update.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-sYsQpm94.mjs";import{t as b}from"./update-B-bAAu6W.mjs";import{t as x}from"./update-B5XbnMLw.mjs";async function S(e=500){l().get(`is-banner-displayed`)||n(`no-banner`)||n(`hide-banner`)||c||(l().set(`is-banner-displayed`,!0),i(``),i(p.banner.outline.primary(`┏`)+p.banner.outline.primary(`━`.repeat(6))+` `+a.banner.header.primary(`⬤`)+` `+p.banner.outline.primary(`━`)+` `+_(a.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+p.banner.outline.primary(`━`.repeat(Math.max(y().columns-38,0)))+p.banner.outline.primary(`┓`),{consoleFn:console.log}),o(Math.max(...f.map(e=>m(e).length))>Math.max(y().columns+30,20)?`Powerlines`:`\n${f.join(`
2
- `)}\n`,Math.max(y().columns-30,20)).forEach(e=>{i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(e).length+2))/2),0))+_(a.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((y().columns-(m(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(`Update`).length+2))/2),0))+_(a.banner.command.primary(`Update`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Update`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`A command for checking and updating the version of the Powerlines command-line interface application.`)),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 C(e){}async function w(t=g()){let n={...u(),latest:!0,version:`latest`};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];if(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`latest=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`latest`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`latest=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`latest`)if(/^--?(latest)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=r.replace(/^--?(latest)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();n.latest=!!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 n.latest=!0;else(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`version=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`version`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`version=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`version`)&&(/^--?(version)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?n.version=r.replace(/^--?(version)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(n.version=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return await S(),await b(),r()||(i(``),(h||v||e.LOG_LEVEL===`debug`)&&i(a.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),n.help?x():d(`update`,[`update`],[n],C)}export{w as handler};
@@ -1 +0,0 @@
1
- import{C as e,H as t,L as n,M as r,N as i,O as a,b as o,j as s,s as c,v as l,x as u}from"./prompts-sYsQpm94.mjs";function d(){n(c(r.heading.secondary(`Common Options:`))),s([[{value:r.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Force colored terminal output (env: POWERLINES_COLOR, default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-?, -h, --help`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Show help information (default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-i, --interact, --interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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:r.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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:r.body.primary(`--hide-banner, --no-banner`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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:r.body.primary(`--no-color, --no-colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Force disable colored terminal output (env: POWERLINES_NO_COLOR, default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`--no-interactive, --non-interactive`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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:r.body.primary(`-V, --verbose`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Enable verbose output (env: POWERLINES_VERBOSE, default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-v, --version`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Show the version of the application (default: false).`),align:`left`,border:`none`}],[{value:r.body.primary(`-y, --yes`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.body.tertiary(`The following commands are available through the Powerlines command-line interface:`)),n(``),n(r.heading.primary((t?` 🏗 `:``)+`${i(`Build`)}`)),n(``),n(r.body.tertiary(a(`Builds the project for production deployment.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`build`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The root directory of the project to build.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🗑 `:``)+`${i(`Clean`)}`)),n(``),n(r.body.tertiary(a(`Cleans the project by removing build artifacts and temporary files.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`clean`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The root directory of the project to clean.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` ⬚ `:``)+`${i(`Create Project`)}`)),n(``),n(r.body.tertiary(a(`Create a new Powerlines project.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`create`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The root directory of the project to create.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🛪 `:``)+`${i(`Deploy`)}`)),n(``),n(r.body.tertiary(a(`Deploys the project and its generated assets/artifacts.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`deploy`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`deployment`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The root directory of the project to deploy.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🕮 `:``)+`${i(`Generate Documentation`)}`)),n(``),n(r.body.tertiary(a(`Generate documentation for the project's source code.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`docs`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The root directory of the project to generate documentation for.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🗶 `:``)+`${i(`Garbage Collection`)}`)),n(``),n(r.body.tertiary(a(`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.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`gc`)} ${r.usage.args(`<data|cache|logs|temp|all>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`gc`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<data|cache|logs|temp|all>`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`garbage-collection`)} ${r.usage.args(`<data|cache|logs|temp|all>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`garbage-collection`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<data|cache|logs|temp|all>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--type <data|cache|logs|temp|all>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The type of environment paths to clean up.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🗹 `:``)+`${i(`Lint Source Code`)}`)),n(``),n(r.body.tertiary(a(`Lint the project's source code for style and syntax errors.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`lint`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The root directory of the project to lint.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🖉 `:``)+`${i(`Prepare Artifacts`)}`)),n(``),n(r.body.tertiary(a(`Generate the project's required build and deployment artifacts.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`prepare`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The root directory of the project to prepare.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🖹 `:``)+`${i(`Generate Typescript Declarations`)}`)),n(``),n(r.body.tertiary(a(`Generate a Typescript declaration (dts) file for the project.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`types`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--root <root>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`The root directory of the project to generate types for.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🗃 `:``)+`${i(`Changelog`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Display the Powerlines changelog.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`changelog`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Commands for generating shell completion scripts for Powerlines.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Commands:`)),{padding:0}),s([[{value:r.body.primary(`bash`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup bash completions for the Powerlines command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`fish`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup Fish completions for the Powerlines command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`powershell`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup PowerShell completions for the Powerlines command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`zsh`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup Zsh completions for the Powerlines command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🛈 `:``)+`${i(`Help`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Display command usage details and other useful information to the user.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`help`)} ${r.usage.args(`<commands...>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`help`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<commands...>`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖒 `:``)+`${i(`Update`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`A command for checking and updating the version of the Powerlines command-line interface application.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`update`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`upgrade`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--latest`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Whether to update to the latest version (default: true).`),align:`left`,border:`none`}],[{value:r.body.primary(`--version <version>`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`A specific application version to update to (default: "latest").`),align:`left`,border:`none`}]]),n(``),n(r.body.tertiary(`More information can be found in the Powerlines documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli`)}${r.body.tertiary(`.`)}`),{padding:0}),n(``),l(`Running a specific command with the help flag (via: ${o(`powerlines <command> --help`)}) or the help command with the specific command as arguments (via: ${o(`powerlines help <command>`)}) will provide additional information that is specific to that command.`),n(``)}function f(){n(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`,{padding:0}),n(c(r.heading.secondary(`Common Options:`))),s([]),n(``),n(r.body.tertiary(`The following commands are available through the Powerlines command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Bash`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Commands to setup bash completions for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Commands:`)),{padding:0}),s([[{value:r.body.primary(`config`),align:`right`,border:`none`},{value:r.body.tertiary(`Update the current system's bash shell configuration to include completions for the Powerlines command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a bash completion script for the Powerlines command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Fish`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Commands to setup Fish completions for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Commands:`)),{padding:0}),s([[{value:r.body.primary(`config`),align:`right`,border:`none`},{value:r.body.tertiary(`Update the current system's Fish shell configuration to include completions for the Powerlines command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a Fish completion script for the Powerlines command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - PowerShell`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Commands to setup PowerShell completions for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Commands:`)),{padding:0}),s([[{value:r.body.primary(`config`),align:`right`,border:`none`},{value:r.body.tertiary(`Update the current system's PowerShell configuration to include completions for the Powerlines command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a PowerShell completion script for the Powerlines command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Zsh`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Commands to setup Zsh completions for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.dynamic(`<command>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Commands:`)),{padding:0}),s([[{value:r.body.primary(`config`),align:`right`,border:`none`},{value:r.body.tertiary(`Update the current system's Zsh shell configuration to include completions for the Powerlines command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a Zsh completion script for the Powerlines command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.body.tertiary(`More information can be found in the Completions command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions`)}${r.body.tertiary(`.`)}`),{padding:0}),n(``),l(`Running a specific command with the help flag (via: ${o(`powerlines completions <command> --help`)}) or the help command with the specific command as arguments (via: ${o(`powerlines completions help <command>`)}) will provide additional information that is specific to that command.`),n(``)}function p(){n(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`,{padding:0}),n(c(r.heading.secondary(`Common Options:`))),s([]),n(``),n(r.body.tertiary(`The following commands are available through the Powerlines command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Bash Configuration`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Update the current system's bash shell configuration to include completions for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`config`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Bash Script`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Generate a bash completion script for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`script`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.body.tertiary(`More information can be found in the Completions - Bash command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/bash`)}${r.body.tertiary(`.`)}`),{padding:0}),n(``),l(`Running a specific command with the help flag (via: ${o(`powerlines completions bash <command> --help`)}) or the help command with the specific command as arguments (via: ${o(`powerlines completions bash help <command>`)}) will provide additional information that is specific to that command.`),n(``)}function m(){n(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`,{padding:0}),n(c(r.heading.secondary(`Common Options:`))),s([]),n(``),n(r.body.tertiary(`The following commands are available through the Powerlines command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Fish Configuration`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Update the current system's Fish shell configuration to include completions for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`config`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Fish Script`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Generate a Fish completion script for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`script`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.body.tertiary(`More information can be found in the Completions - Fish command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/fish`)}${r.body.tertiary(`.`)}`),{padding:0}),n(``),l(`Running a specific command with the help flag (via: ${o(`powerlines completions fish <command> --help`)}) or the help command with the specific command as arguments (via: ${o(`powerlines completions fish help <command>`)}) will provide additional information that is specific to that command.`),n(``)}function h(){n(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`,{padding:0}),n(c(r.heading.secondary(`Common Options:`))),s([]),n(``),n(r.body.tertiary(`The following commands are available through the Powerlines command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - PowerShell Configuration`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Update the current system's PowerShell configuration to include completions for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`config`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - PowerShell Script`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Generate a PowerShell completion script for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`script`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.body.tertiary(`More information can be found in the Completions - PowerShell command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/powershell`)}${r.body.tertiary(`.`)}`),{padding:0}),n(``),l(`Running a specific command with the help flag (via: ${o(`powerlines completions powershell <command> --help`)}) or the help command with the specific command as arguments (via: ${o(`powerlines completions powershell help <command>`)}) will provide additional information that is specific to that command.`),n(``)}function g(){n(`${c(r.heading.secondary(`Tags: `))} ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`,{padding:0}),n(c(r.heading.secondary(`Common Options:`))),s([]),n(``),n(r.body.tertiary(`The following commands are available through the Powerlines command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Zsh Configuration`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Update the current system's Zsh shell configuration to include completions for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`config`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`${i(`Completions - Zsh Script`)} - ${r.tags.utility?r.tags.utility(u(` Utility `)):r.tags.$default(u(` Utility `))}`)),n(``),n(r.body.tertiary(a(`Generate a Zsh completion script for the Powerlines command-line interface.`))),n(``),n(c(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`script`)} ${r.usage.args(`<path>`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(r.body.secondary(`${r.usage.bin(`>_ powerlines`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)} ${r.usage.args(`<path>`)}`),{padding:0}),n(``),n(c(r.heading.secondary(`Options:`)),{padding:0}),s([[{value:r.body.primary(`--display`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.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`}]]),n(``),n(r.body.tertiary(`More information can be found in the Completions - Zsh command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/completions/zsh`)}${r.body.tertiary(`.`)}`),{padding:0}),n(``),l(`Running a specific command with the help flag (via: ${o(`powerlines completions zsh <command> --help`)}) or the help command with the specific command as arguments (via: ${o(`powerlines completions zsh help <command>`)}) will provide additional information that is specific to that command.`),n(``)}export{f as a,p as i,h as n,d as o,m as r,g as t};
@@ -1,36 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __exportAll = (all, no_symbols) => {
7
- let target = {};
8
- for (var name in all) {
9
- __defProp(target, name, {
10
- get: all[name],
11
- enumerable: true
12
- });
13
- }
14
- if (!no_symbols) {
15
- __defProp(target, Symbol.toStringTag, { value: "Module" });
16
- }
17
- return target;
18
- };
19
- var __copyProps = (to, from, except, desc) => {
20
- if (from && typeof from === "object" || typeof from === "function") {
21
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
22
- key = keys[i];
23
- if (!__hasOwnProp.call(to, key) && key !== except) {
24
- __defProp(to, key, {
25
- get: ((k) => from[k]).bind(null, key),
26
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
27
- });
28
- }
29
- }
30
- }
31
- return to;
32
- };
33
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
34
-
35
- //#endregion
36
- export { __exportAll, __reExport };