powerlines 0.47.124 → 0.47.126

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 (51) hide show
  1. package/bin/bin.mjs +9 -0
  2. package/bin/build-CJIAgNA5.mjs +1 -0
  3. package/bin/build.mjs +5 -0
  4. package/bin/changelog-d-cmenYB.mjs +1 -0
  5. package/bin/changelog.mjs +527 -0
  6. package/bin/clean-dutxbMO3.mjs +1 -0
  7. package/bin/clean.mjs +5 -0
  8. package/bin/completions-bash-config.mjs +9 -0
  9. package/bin/completions-bash-script.mjs +9 -0
  10. package/bin/completions-fish-config.mjs +9 -0
  11. package/bin/completions-fish-script.mjs +9 -0
  12. package/bin/completions-powershell-config.mjs +9 -0
  13. package/bin/completions-powershell-script.mjs +9 -0
  14. package/bin/completions-zsh-config.mjs +9 -0
  15. package/bin/completions-zsh-script.mjs +9 -0
  16. package/bin/config-B0hTZO6E.mjs +1 -0
  17. package/bin/config-BJFVoVkf.mjs +1 -0
  18. package/bin/config-BaNVYrnl.mjs +1 -0
  19. package/bin/config-Bf2LnULJ.mjs +1 -0
  20. package/bin/create-DYKxyvzg.mjs +1 -0
  21. package/bin/create-powerlines-DvusHjN3.mjs +1 -0
  22. package/bin/create.mjs +5 -0
  23. package/bin/deploy-BMhOgvx4.mjs +1 -0
  24. package/bin/deploy.mjs +5 -0
  25. package/bin/docs-CAUeTrLz.mjs +1 -0
  26. package/bin/docs.mjs +5 -0
  27. package/bin/gc-DZjHvUuc.mjs +1 -0
  28. package/bin/gc.mjs +7 -0
  29. package/bin/help.mjs +5 -0
  30. package/bin/lint-DdDmoyDN.mjs +1 -0
  31. package/bin/lint.mjs +5 -0
  32. package/bin/prepare-Yz_6EWzB.mjs +1 -0
  33. package/bin/prepare.mjs +5 -0
  34. package/bin/prompts-BnlPjHFR.mjs +26 -0
  35. package/bin/script-B97oHT_M.mjs +1 -0
  36. package/bin/script-Bn4yCHJR.mjs +1 -0
  37. package/bin/script-DGDOPq0P.mjs +1 -0
  38. package/bin/script-Di-8LIT0.mjs +1 -0
  39. package/bin/shared-BiFPKQIb.mjs +235 -0
  40. package/bin/shared-CLQvIZ7z.mjs +216 -0
  41. package/bin/shared-ClfTGQiY.mjs +249 -0
  42. package/bin/shared-D6Uc3liR.mjs +103 -0
  43. package/bin/types-BhiTsmcq.mjs +1 -0
  44. package/bin/types.mjs +5 -0
  45. package/bin/upgrade-aCJAI3aA.mjs +1 -0
  46. package/bin/upgrade-yP6Jdrm0.mjs +1 -0
  47. package/bin/upgrade.mjs +5 -0
  48. package/bin/zsh-Cve0Syog.mjs +3 -0
  49. package/dist/package.cjs +1 -1
  50. package/dist/package.mjs +1 -1
  51. package/package.json +7 -7
@@ -0,0 +1,249 @@
1
+ import{C as e,S as t,a as n,b as r,c as i,d as a,h as o,j as s,l as c,m as l,p as u,x as d}from"./prompts-BnlPjHFR.mjs";const f=`# powershell completion for Command Line Interface
2
+
3
+ [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
4
+ function __cli_debug {
5
+ if ($env:BASH_COMP_DEBUG_FILE) {
6
+ "$args" | Out-File -Append -FilePath "$env:BASH_COMP_DEBUG_FILE"
7
+ }
8
+ }
9
+
10
+ filter __cli_escapeStringWithSpecialChars {
11
+ $_ -replace 's|#|@|$|;|,|''|{|}|(|)|"|||<|>|&','\`$&'
12
+ }
13
+
14
+ [scriptblock]$__cliCompleterBlock = {
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
+ __cli_debug ""
26
+ __cli_debug "========= starting completion logic =========="
27
+ __cli_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
+ __cli_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
+ __cli_debug "QuotedArgs: $QuotedArgs"
52
+
53
+ $RequestComp = "& /nix/store/8spcnffxayf4h9v8w075j01bxxgv5c8j-nodejs-slim-26.3.0/bin/node /home/runner/work/powerlines/powerlines/node_modules/.pnpm/nx@22.7.5_@swc-node+register@1.11.1_@swc+core@1.15.40_@swc+helpers@0.5.23__@swc+types@0_559e3db9ab82faa3b71ca2061041f3f6/node_modules/nx/dist/bin/run-executor.js complete '--' $QuotedArgs"
54
+ __cli_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
+ __cli_debug "New WordToComplete: $WordToComplete"
63
+
64
+
65
+ # Check for flag with equal sign
66
+ $IsEqualFlag = ($WordToComplete -Like "--*=*" )
67
+ if ( $IsEqualFlag ) {
68
+ __cli_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
+ __cli_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
+ __cli_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
+ __cli_debug "The completion directive is: $Directive"
104
+
105
+ # remove directive (last element) from out
106
+ $Out = $Out | Where-Object { $_ -ne $Out[-1] }
107
+ __cli_debug "The completions are: $Out"
108
+ if (($Directive -band $ShellCompDirectiveError) -ne 0 ) {
109
+ # Error code. No completion.
110
+ __cli_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
+ __cli_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
+ __cli_debug "ShellCompDirectiveNoSpace is called"
138
+ $Space = ""
139
+ }
140
+
141
+ if ((($Directive -band $ShellCompDirectiveFilterFileExt) -ne 0 ) -or
142
+ (($Directive -band $ShellCompDirectiveFilterDirs) -ne 0 )) {
143
+ __cli_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
+ __cli_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
+ __cli_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
+ __cli_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
+ __cli_debug "Only one completion left"
206
+
207
+ # insert space after value
208
+ [System.Management.Automation.CompletionResult]::new($($comp.Name | __cli_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 | __cli_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 | __cli_escapeStringWithSpecialChars), "$($comp.Name)", 'ParameterValue', "$($comp.Description)")
241
+ }
242
+ }
243
+ }
244
+ }
245
+
246
+ Register-ArgumentCompleter -CommandName 'cli' -ScriptBlock $__cliCompleterBlock
247
+ `,p=f.split(`
248
+ `).map(f=>f.trim()?f.trim().startsWith(`#`)?`${a(f)}`:s(f).replaceAll(/(?<=\$(\{|\()).*(?=(\}\)))/g,l(`$&`)).replaceAll(/\".*\"/g,i(`$&`)).replaceAll(/(\[|\]|\(|\)|\||<|>|\$\(|\$?\{|\}|\+|=|;|::new|::OutputEncoding|::UTF8)/g,n(u(`$&`))).replaceAll(/(switch|complete)\s+/g,l(`$&`)).replaceAll(/(?<=(switch|complete)\s+)\w/g,n(o(`$&`))).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,n(e(`$&`))).replaceAll(/while\s+/g,i(`$&`)).replaceAll(/(?<=while\s+)\w/g,n(c(`$&`))).replaceAll(/(if|fi|else|elif|then|done)\s+/g,l(`$&`)).replaceAll(/\$?__\w/g,n(d(`$&`))).replaceAll(/(?<=\s)(-\w|--\w[\w-]*)(?=\s|$)/g,n(r(`$&`))):``).join(`
249
+ `);export{p as n,f as t};
@@ -0,0 +1,103 @@
1
+ import{C as e,S as t,a as n,b as r,c as i,d as a,h as o,j as s,l as c,m as l,p as u,x as d}from"./prompts-BnlPjHFR.mjs";const f=`# Define shell completion directives
2
+ readonly ShellCompDirectiveError=1
3
+ readonly ShellCompDirectiveNoSpace=2
4
+ readonly ShellCompDirectiveNoFileComp=4
5
+ readonly ShellCompDirectiveFilterFileExt=8
6
+ readonly ShellCompDirectiveFilterDirs=16
7
+ readonly ShellCompDirectiveKeepOrder=32
8
+
9
+ # Function to debug completion
10
+ __cli_debug() {
11
+ if [[ -n \${BASH_COMP_DEBUG_FILE:-} ]]; then
12
+ echo "$*" >> "\${BASH_COMP_DEBUG_FILE}"
13
+ fi
14
+ }
15
+
16
+ # Function to handle completions
17
+ __cli_complete() {
18
+ local cur prev words cword
19
+ _get_comp_words_by_ref -n "=:" cur prev words cword
20
+
21
+ local requestComp out directive
22
+
23
+ # Build the command to get completions
24
+ requestComp="/nix/store/8spcnffxayf4h9v8w075j01bxxgv5c8j-nodejs-slim-26.3.0/bin/node /home/runner/work/powerlines/powerlines/node_modules/.pnpm/nx@22.7.5_@swc-node+register@1.11.1_@swc+core@1.15.40_@swc+helpers@0.5.23__@swc+types@0_559e3db9ab82faa3b71ca2061041f3f6/node_modules/nx/dist/bin/run-executor.js complete -- \${words[@]:1}"
25
+
26
+ # Add an empty parameter if the last parameter is complete
27
+ if [[ -z "$cur" ]]; then
28
+ requestComp="$requestComp ''"
29
+ fi
30
+
31
+ # Get completions from the program
32
+ out=$(eval "$requestComp" 2>/dev/null)
33
+
34
+ # Extract directive if present
35
+ directive=0
36
+ if [[ "$out" == *:* ]]; then
37
+ directive=\${out##*:}
38
+ out=\${out%:*}
39
+ fi
40
+
41
+ # Process completions based on directive
42
+ if [[ $((directive & $ShellCompDirectiveError)) -ne 0 ]]; then
43
+ # Error, no completion
44
+ return
45
+ fi
46
+
47
+ # Apply directives
48
+ if [[ $((directive & $ShellCompDirectiveNoSpace)) -ne 0 ]]; then
49
+ compopt -o nospace
50
+ fi
51
+ if [[ $((directive & $ShellCompDirectiveKeepOrder)) -ne 0 ]]; then
52
+ compopt -o nosort
53
+ fi
54
+ if [[ $((directive & $ShellCompDirectiveNoFileComp)) -ne 0 ]]; then
55
+ compopt +o default
56
+ fi
57
+
58
+ # Handle file extension filtering
59
+ if [[ $((directive & $ShellCompDirectiveFilterFileExt)) -ne 0 ]]; then
60
+ local filter=""
61
+ for ext in $out; do
62
+ filter="$filter|$ext"
63
+ done
64
+ filter=".($filter)"
65
+ compopt -o filenames
66
+ COMPREPLY=( $(compgen -f -X "!$filter" -- "$cur") )
67
+ return
68
+ fi
69
+
70
+ # Handle directory filtering
71
+ if [[ $((directive & $ShellCompDirectiveFilterDirs)) -ne 0 ]]; then
72
+ compopt -o dirnames
73
+ COMPREPLY=( $(compgen -d -- "$cur") )
74
+ return
75
+ fi
76
+
77
+ # Process completions
78
+ local IFS=$'
79
+ '
80
+ local tab=$(printf ' ')
81
+
82
+ # Parse completions with descriptions
83
+ local completions=()
84
+ while read -r comp; do
85
+ if [[ "$comp" == *$tab* ]]; then
86
+ # Split completion and description
87
+ local value=\${comp%%$tab*}
88
+ local desc=\${comp#*$tab}
89
+ completions+=("$value")
90
+ else
91
+ completions+=("$comp")
92
+ fi
93
+ done <<< "$out"
94
+
95
+ # Return completions
96
+ COMPREPLY=( $(compgen -W "\${completions[*]}" -- "$cur") )
97
+ }
98
+
99
+ # Register completion function
100
+ complete -F __cli_complete cli
101
+ `,p=f.split(`
102
+ `).map(f=>f.trim()?f.trim().startsWith(`#`)?`${a(f)}`:s(f).replaceAll(/(?<=\$(\{|\()).*(?=(\}\)))/g,l(`$&`)).replaceAll(/\".*\"/g,i(`$&`)).replaceAll(/(\[|\]|\(|\)|\||<|>|\$\(|\$?\{|\}|\+|=|;|:)/g,n(u(`$&`))).replaceAll(/(readonly|complete)\s+/g,l(`$&`)).replaceAll(/(?<=(readonly|complete)\s+)\w/g,n(o(`$&`))).replaceAll(/local\s+/g,t(`$&`)).replaceAll(/(?<=local\s+)\w/g,n(e(`$&`))).replaceAll(/while\s+/g,i(`$&`)).replaceAll(/(?<=while\s+)\w/g,n(c(`$&`))).replaceAll(/(if|fi|else|elif|then|done)\s+/g,l(`$&`)).replaceAll(/__\w/g,n(d(`$&`))).replaceAll(/(?<=\s)(-\w|--\w[\w-]*)(?=\s|$)/g,n(r(`$&`))):``).join(`
103
+ `);export{p as n,f as t};
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`types`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
package/bin/types.mjs ADDED
@@ -0,0 +1,5 @@
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./types-BhiTsmcq.mjs";async function C(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
2
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Generate Typescript Declaration File`).length+2))/2),0))+g(c.banner.command.primary(`Generate Typescript Declaration File`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Generate Typescript Declaration File`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`Generate the project's Typescript declaration file.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}async function w(e){await(await x(e)).types(e)}async function T(e=r()){let t={...p()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await C(),await b(),s(``),(h||m||a.LOG_LEVEL===`debug`)&&(s(c.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),s(``),v(`Command path: types
3
+
4
+ Options:
5
+ `)),t.help?S():o(`types`,[`types`],[],w)}export{T as handler};
@@ -0,0 +1 @@
1
+ import{M as e,O as t,a as n}from"./prompts-BnlPjHFR.mjs";function r(){e(``),e(n(t.heading.secondary(`Usage:`))),e(t.body.secondary(`${t.usage.bin(`$_ cli`)} ${t.usage.command(`upgrade`)} ${t.usage.options(`[options]`)}`),{padding:0}),e(``)}export{r as t};
@@ -0,0 +1 @@
1
+ import{$ as e,F as t,J as n,M as r,O as i,Q as a,S as o,Y as s,_ as c,i as l,m as u,s as d,u as f,z as p}from"./prompts-BnlPjHFR.mjs";import m from"node:os";import{join as h,resolve as g}from"node:path";import{existsSync as _}from"node:fs";import v from"node:process";import{mkdir as y,readFile as b,writeFile as x}from"node:fs/promises";const S=m.homedir(),C=m.tmpdir();async function w(e={}){let t=e.cwd??v.cwd(),n=g(t,`..`);for(;n!==t&&t!==S&&t!==C;){let r=h(t,`package.json`);if(_(r))if(e.isDependencyRequired){let e=JSON.parse(await b(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=g(t,`..`)}}function T(e={}){let t=e.cwd??v.cwd(),n=g(t,`..`);for(;n!==t&&t!==S&&t!==C;){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=>_(h(t,e)));if(e)return e;t=n,n=g(t,`..`)}}async function E(e={}){let t=v.env.npm_config_user_agent??``,n=v.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`)||v.versions.bun)return`bun`;{let t=T(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 w(e);if(t&&_(t)){let e=JSON.parse(await b(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 D(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 O(e=`@powerlines/cli`){return(await D(e))?.version}async function k(e,t=v.cwd()){let n=await O(`@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 A(e={}){let t=await E(e),n=await k(t,e.cwd),r=``;await p(`${t}${a&&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 j(e={}){if(!e.force&&!await M())return{latestVersion:`0.47.125`,currentVersion:`0.47.125`,isUpToDate:!0,isError:!1};try{let e=await D(`@powerlines/cli`);return{latestVersion:e?.version||`0.47.125`,currentVersion:`0.47.125`,isUpToDate:e?e.version===`0.47.125`:!0,package:e,isError:!1}}catch(e){return{isError:!0,error:e instanceof Error?e:Error(String(e))}}}async function M(){if(!t||s||n.SKIP_UPDATE_CHECK)return!1;let r=h(e.data,`version-check.json`);if(_(r)){let e=JSON.parse(await b(r,`utf8`));if(!e.timestamp)return await N(),!0;if(new Date().getTime()-e.timestamp<1296e5)return!1}else return await N(),!0}async function N(){_(e.data)||await y(e.data,{recursive:!0}),await x(h(e.data,`version-check.json`),JSON.stringify({timestamp:new Date().getTime()}),`utf8`)}async function P(){if(await M()){let e=d({message:`Checking for updates...`}).start(),t=await j({force:!0});if(t?.isError)e.error(`An error occurred while checking for application updates. Please try again later - if the problem persists, please contact support.`),f(t.error);else if(t?.isUpToDate)e.success(`Currently running the latest version of .`),r(``);else{e.stop(),c(`A new version of is available: ${o(`v${t.currentVersion}`)} ${i.body.tertiary(`➜`)} ${u(`v${t.latestVersion}`)}${t.package?.date?i.body.tertiary(` (updated on ${t.package?.date})`):``}`);try{await A(),e.success(`Update successful! Please restart the application to apply the update.`),r(``),help(`The changelog for this release can be viewed by running the ${inlineCode(`cli changelog`)} command.`),r(``),r(`Press any key to exit the application...`),await l();return}catch(n){e.error(`An error occurred while updating to v${t.latestVersion}. Please try again later - if the problem persists, please contact support.`),f(n)}}}}export{P as t};
@@ -0,0 +1,5 @@
1
+ import{B as e,F as t,G as n,H as r,I as i,J as a,K as o,M as s,O as c,P as l,R as u,T as d,V as f,W as p,X as m,Z as h,a as g,o as _,u as v,w as y}from"./prompts-BnlPjHFR.mjs";import{t as b}from"./upgrade-yP6Jdrm0.mjs";import{t as x}from"./upgrade-aCJAI3aA.mjs";async function S(r=500){if(n().get(`banner`)||e(`no-banner`)||e(`hide-banner`)||i)return;n().set(`banner`,!0),s(``),s(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+c.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+g(c.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log});let a=[`Command-Line Interface`];y(Math.max(...a.map(e=>d(e).length))>Math.max(l().columns+30,20)?``:`\n${a.join(`
2
+ `)}\n`,Math.max(l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+g(c.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(`Upgrade`).length+2))/2),0))+g(c.banner.command.primary(`Upgrade`))+` `.repeat(Math.max(Math.ceil((l().columns-(d(`Upgrade`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),y(g(c.banner.description.primary(`A command for checking and upgrading the version of the command-line interface application.`)),Math.max(60>l().columns/2?l().columns-6:l().columns-30,20)).forEach(e=>{s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((l().columns-(d(e).length+2))/2),0))+c.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((l().columns-(d(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),s(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(l().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),s(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-35,0)))+` `+g(c.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),s(``),t&&!f()&&await u(r)}async function C(e){}async function w(e=r()){let t={...p()};for(let t=0;t<e.slice(0).length;t++)e[t].length>3&&e[t].startsWith(`--`)?`${e[t].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:e[t].length>2&&e[t].startsWith(`-`)?`${e[t].slice(1).replaceAll(`-`,``)}`:e[t];return await S(),await b(),s(``),(h||m||a.LOG_LEVEL===`debug`)&&(s(c.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`)),s(``),v(`Command path: upgrade
3
+
4
+ Options:
5
+ `)),t.help?x():o(`upgrade`,[`upgrade`],[],C)}export{w as handler};
@@ -0,0 +1,3 @@
1
+ import{D as e,L as t,M as n,O as r,a as i,g as a,v as o,w as s,y as c}from"./prompts-BnlPjHFR.mjs";function l(){n(i(r.heading.secondary(`Common Options:`))),e([[{value:r.body.primary(`--color, --colors`),align:`right`,border:`none`,maxWidth:`1/3`},{value:r.body.tertiary(`Enable colored terminal output (env: CLI_COLOR).`),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: CLI_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: CLI_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: CLI_NO_BANNER, 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: CLI_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`}]]),n(``),n(r.body.tertiary(`The following commands are available through the command-line interface:`)),n(``),n(r.heading.primary((t?` 🏗 `:``)+`Build Command`)),n(``),n(r.body.tertiary(s(`Builds the project for production deployment.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`build`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🗑 `:``)+`Clean Command`)),n(``),n(r.body.tertiary(s(`Cleans the project by removing build artifacts and temporary files.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`clean`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` ⬚ `:``)+`Create Project Command`)),n(``),n(r.body.tertiary(s(`Create a new Powerlines project.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`create`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🛪 `:``)+`Deploy Command`)),n(``),n(r.body.tertiary(s(`Deploys the project and its generated assets/artifacts.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`deploy`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🕮 `:``)+`Generate Documentation Command`)),n(``),n(r.body.tertiary(s(`Generate documentation for the project's source code.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`docs`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🗶 `:``)+`Garbage Collection Command`)),n(``),n(r.body.tertiary(s(`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.
2
+
3
+ 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(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`gc`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🗹 `:``)+`Lint Source Code Command`)),n(``),n(r.body.tertiary(s(`Lint the project's source code for style and syntax errors.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`lint`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖉 `:``)+`Prepare Artifacts Command`)),n(``),n(r.body.tertiary(s(`Generate the project's required build and deployment artifacts.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`prepare`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖹 `:``)+`Generate Typescript Declaration File Command`)),n(``),n(r.body.tertiary(s(`Generate the project's Typescript declaration file.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`types`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🗃 `:``)+`Changelog Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Display the Command Line Interface changelog.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`changelog`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Commands for generating shell completion scripts for Command Line Interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.dynamic(`[command]`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(i(r.heading.secondary(`Commands:`)),{padding:0}),e([[{value:r.body.primary(`zsh`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup Zsh completions for the 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 command-line interface.`),align:`left`,border:`none`}],[{value:r.body.primary(`bash`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup bash completions for the 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 command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🛈 `:``)+`Help Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Display command usage details and other useful information to the user.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`help`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖒 `:``)+`Upgrade Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`A command for checking and upgrading the version of the command-line interface application.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`upgrade`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),a(`Running a specific command with the help flag (via: ${o(`cli <specific command> --help`)}) or the help command with the specific command as arguments (via: ${o(`cli help <specific command>`)}) will provide additional information that is specific to that command.`),n(``)}function u(){n(i(r.heading.secondary(`Common Options:`))),e([]),n(``),n(r.body.tertiary(`The following commands are available through the command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Bash - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Commands to setup bash completions for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.dynamic(`[command]`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(i(r.heading.secondary(`Commands:`)),{padding:0}),e([[{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 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 command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Fish - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Commands to setup Fish completions for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.dynamic(`[command]`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(i(r.heading.secondary(`Commands:`)),{padding:0}),e([[{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 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 command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - PowerShell - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Commands to setup PowerShell completions for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.dynamic(`[command]`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(i(r.heading.secondary(`Commands:`)),{padding:0}),e([[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a PowerShell completion script for the command-line interface.`),align:`left`,border:`none`}],[{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 command-line interface.`),align:`left`,border:`none`}]]),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Zsh - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Commands to setup Zsh completions for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.dynamic(`[command]`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(i(r.heading.secondary(`Commands:`)),{padding:0}),e([[{value:r.body.primary(`script`),align:`right`,border:`none`},{value:r.body.tertiary(`Generate a Zsh completion script for the command-line interface.`),align:`left`,border:`none`}],[{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 command-line interface.`),align:`left`,border:`none`}]]),n(``),a(`Running a specific command with the help flag (via: ${o(`cli <specific command> --help`)}) or the help command with the specific command as arguments (via: ${o(`cli help <specific command>`)}) will provide additional information that is specific to that command.`),n(``)}function d(){n(i(r.heading.secondary(`Common Options:`))),e([]),n(``),n(r.body.tertiary(`The following commands are available through the command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Bash Configuration Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Update the current system's bash shell configuration to include completions for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Bash Script Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Generate a bash completion script for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`bash`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),a(`Running a specific command with the help flag (via: ${o(`cli <specific command> --help`)}) or the help command with the specific command as arguments (via: ${o(`cli help <specific command>`)}) will provide additional information that is specific to that command.`),n(``)}function f(){n(i(r.heading.secondary(`Common Options:`))),e([]),n(``),n(r.body.tertiary(`The following commands are available through the command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Fish Configuration Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Update the current system's Fish shell configuration to include completions for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Fish Script Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Generate a Fish completion script for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`fish`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),a(`Running a specific command with the help flag (via: ${o(`cli <specific command> --help`)}) or the help command with the specific command as arguments (via: ${o(`cli help <specific command>`)}) will provide additional information that is specific to that command.`),n(``)}function p(){n(i(r.heading.secondary(`Common Options:`))),e([]),n(``),n(r.body.tertiary(`The following commands are available through the command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - PowerShell Configuration Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Update the current system's PowerShell configuration to include completions for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - PowerShell Script Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Generate a PowerShell completion script for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`powershell`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),a(`Running a specific command with the help flag (via: ${o(`cli <specific command> --help`)}) or the help command with the specific command as arguments (via: ${o(`cli help <specific command>`)}) will provide additional information that is specific to that command.`),n(``)}function m(){n(i(r.heading.secondary(`Common Options:`))),e([]),n(``),n(r.body.tertiary(`The following commands are available through the command-line interface:`)),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Zsh Configuration Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Update the current system's Zsh shell configuration to include completions for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`config`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),n(r.heading.primary((t?` 🖵 `:``)+`Completions - Zsh Script Command - ${r.tags.utility?r.tags.utility(c(` Utility `)):r.tags.$default(c(` Utility `))}`)),n(``),n(r.body.tertiary(s(`Generate a Zsh completion script for the command-line interface.`))),n(``),n(i(r.heading.secondary(`Usage:`)),{padding:0}),n(r.body.secondary(`${r.usage.bin(`$_ cli`)} ${r.usage.command(`completions`)} ${r.usage.command(`zsh`)} ${r.usage.command(`script`)} ${r.usage.options(`[options]`)}`),{padding:0}),n(``),a(`Running a specific command with the help flag (via: ${o(`cli <specific command> --help`)}) or the help command with the specific command as arguments (via: ${o(`cli help <specific command>`)}) will provide additional information that is specific to that command.`),n(``)}export{u as a,d as i,p as n,l as o,f as r,m as t};
package/dist/package.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  //#region package.json
3
- var version = "0.47.124";
3
+ var version = "0.47.126";
4
4
 
5
5
  //#endregion
6
6
  Object.defineProperty(exports, 'version', {
package/dist/package.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.47.124";
2
+ var version = "0.47.126";
3
3
 
4
4
  //#endregion
5
5
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powerlines",
3
- "version": "0.47.124",
3
+ "version": "0.47.126",
4
4
  "private": false,
5
5
  "description": "The \"framework framework\" that simplifies modern dev tool usage, generates virtual (or actual) code modules, and improves DX across the board.",
6
6
  "keywords": [
@@ -170,13 +170,13 @@
170
170
  "module": "./dist/index.mjs",
171
171
  "types": "./dist/index.d.cts",
172
172
  "bin": { "powerlines": "./bin/bin.mjs" },
173
- "files": ["dist", "files"],
173
+ "files": ["dist", "bin", "files"],
174
174
  "dependencies": {
175
175
  "@babel/types": "8.0.0-rc.6",
176
- "@powerlines/core": "^0.48.46",
177
- "@powerlines/engine": "^0.49.48",
178
- "@powerlines/schema": "^0.11.106",
179
- "@powerlines/unplugin": "^0.0.94",
176
+ "@powerlines/core": "^0.48.48",
177
+ "@powerlines/engine": "^0.49.50",
178
+ "@powerlines/schema": "^0.11.108",
179
+ "@powerlines/unplugin": "^0.0.96",
180
180
  "@storm-software/config": "^1.137.72",
181
181
  "@storm-software/config-tools": "^1.190.40",
182
182
  "@stryke/convert": "^0.7.15",
@@ -193,5 +193,5 @@
193
193
  "undici-types": "^7.27.0"
194
194
  },
195
195
  "publishConfig": { "access": "public" },
196
- "gitHead": "1530c8cbb090f1f728d112475074eb3a86070557"
196
+ "gitHead": "3d69d66bdb43fcddc6181fc9dc979645c2f1cf1e"
197
197
  }