powerlines 0.47.144 → 0.47.145
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.mjs +0 -2
- package/dist/index.mjs +0 -1
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- package/dist/plugin-utils.mjs +0 -2
- package/dist/storage.mjs +0 -2
- package/package.json +13 -13
- package/bin/bin.mjs +0 -8
- package/bin/build-DjyA6GQp.mjs +0 -1
- package/bin/build.mjs +0 -2
- package/bin/changelog-B8i9yY3P.mjs +0 -1
- package/bin/changelog.mjs +0 -524
- package/bin/clean-B9CJqZ1x.mjs +0 -1
- package/bin/clean.mjs +0 -2
- package/bin/completions-bash-config.mjs +0 -7
- package/bin/completions-bash-script.mjs +0 -7
- package/bin/completions-fish-config.mjs +0 -7
- package/bin/completions-fish-script.mjs +0 -7
- package/bin/completions-powershell-config.mjs +0 -7
- package/bin/completions-powershell-script.mjs +0 -7
- package/bin/completions-zsh-config.mjs +0 -7
- package/bin/completions-zsh-script.mjs +0 -7
- package/bin/config-BYBQBrQG.mjs +0 -1
- package/bin/config-C1fmmSMf.mjs +0 -1
- package/bin/config-CK793fTW.mjs +0 -1
- package/bin/config-Zf66j-rA.mjs +0 -1
- package/bin/create-DqStfXER.mjs +0 -1
- package/bin/create-powerlines-DvusHjN3.mjs +0 -1
- package/bin/create.mjs +0 -3
- package/bin/deploy-DnH_cRzq.mjs +0 -1
- package/bin/deploy.mjs +0 -2
- package/bin/docs-HAdp8uaP.mjs +0 -1
- package/bin/docs.mjs +0 -2
- package/bin/gc-DPUIueyK.mjs +0 -1
- package/bin/gc.mjs +0 -3
- package/bin/help.mjs +0 -3
- package/bin/lint-Ba5PLVn8.mjs +0 -1
- package/bin/lint.mjs +0 -2
- package/bin/prepare-CGt61HvT.mjs +0 -1
- package/bin/prepare.mjs +0 -2
- package/bin/prompts-D_Rv-lNz.mjs +0 -27
- package/bin/script-Bd5rrPMc.mjs +0 -1
- package/bin/script-DG76mLcM.mjs +0 -1
- package/bin/script-ad5QoVHh.mjs +0 -1
- package/bin/script-zD-5QlvH.mjs +0 -1
- package/bin/shared-BItwCZrh.mjs +0 -216
- package/bin/shared-HomY1B9h.mjs +0 -103
- package/bin/shared-ZYvIh4BL.mjs +0 -249
- package/bin/shared-l2cUQ8pt.mjs +0 -235
- package/bin/types-CK9oFG7L.mjs +0 -1
- package/bin/types.mjs +0 -2
- package/bin/update-ChLxGxOi.mjs +0 -1
- package/bin/update-ZLGSIorW.mjs +0 -1
- package/bin/update.mjs +0 -2
- package/bin/zsh-HSOqkRfN.mjs +0 -1
- package/dist/_virtual/_rolldown/runtime.mjs +0 -36
package/bin/shared-l2cUQ8pt.mjs
DELETED
|
@@ -1,235 +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-D_Rv-lNz.mjs";const f=`function __powerlines_debug
|
|
2
|
-
set -l file "$BASH_COMP_DEBUG_FILE"
|
|
3
|
-
if test -n "$file"
|
|
4
|
-
echo "$argv" >> $file
|
|
5
|
-
end
|
|
6
|
-
end
|
|
7
|
-
|
|
8
|
-
function __powerlines_perform_completion
|
|
9
|
-
__powerlines_debug "Starting __powerlines_perform_completion"
|
|
10
|
-
|
|
11
|
-
# Extract all args except the last one
|
|
12
|
-
set -l args (commandline -opc)
|
|
13
|
-
# Extract the last arg and escape it in case it is a space or wildcard
|
|
14
|
-
set -l lastArg (string escape -- (commandline -ct))
|
|
15
|
-
|
|
16
|
-
__powerlines_debug "args: $args"
|
|
17
|
-
__powerlines_debug "last arg: $lastArg"
|
|
18
|
-
|
|
19
|
-
# Build the completion request command
|
|
20
|
-
set -l requestComp "/nix/store/k6rg5622i98aqmjy94jki8nz7ghm3x0s-nodejs-slim-26.5.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 -- (string join ' ' -- (string escape -- $args[2..-1])) $lastArg"
|
|
21
|
-
|
|
22
|
-
__powerlines_debug "Calling $requestComp"
|
|
23
|
-
set -l results (eval $requestComp 2> /dev/null)
|
|
24
|
-
|
|
25
|
-
# Some programs may output extra empty lines after the directive.
|
|
26
|
-
# Let's ignore them or else it will break completion.
|
|
27
|
-
# Ref: https://github.com/spf13/cobra/issues/1279
|
|
28
|
-
for line in $results[-1..1]
|
|
29
|
-
if test (string trim -- $line) = ""
|
|
30
|
-
# Found an empty line, remove it
|
|
31
|
-
set results $results[1..-2]
|
|
32
|
-
else
|
|
33
|
-
# Found non-empty line, we have our proper output
|
|
34
|
-
break
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
set -l comps $results[1..-2]
|
|
39
|
-
set -l directiveLine $results[-1]
|
|
40
|
-
|
|
41
|
-
# For Fish, when completing a flag with an = (e.g., <program> -n=<TAB>)
|
|
42
|
-
# completions must be prefixed with the flag
|
|
43
|
-
set -l flagPrefix (string match -r -- '-.*=' "$lastArg")
|
|
44
|
-
|
|
45
|
-
__powerlines_debug "Comps: $comps"
|
|
46
|
-
__powerlines_debug "DirectiveLine: $directiveLine"
|
|
47
|
-
__powerlines_debug "flagPrefix: $flagPrefix"
|
|
48
|
-
|
|
49
|
-
for comp in $comps
|
|
50
|
-
printf "%s%s
|
|
51
|
-
" "$flagPrefix" "$comp"
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
printf "%s
|
|
55
|
-
" "$directiveLine"
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
# This function limits calls to __powerlines_perform_completion, by caching the result
|
|
59
|
-
function __powerlines_perform_completion_once
|
|
60
|
-
__powerlines_debug "Starting __powerlines_perform_completion_once"
|
|
61
|
-
|
|
62
|
-
if test -n "$__powerlines_perform_completion_once_result"
|
|
63
|
-
__powerlines_debug "Seems like a valid result already exists, skipping __powerlines_perform_completion"
|
|
64
|
-
return 0
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
set --global __powerlines_perform_completion_once_result (__powerlines_perform_completion)
|
|
68
|
-
if test -z "$__powerlines_perform_completion_once_result"
|
|
69
|
-
__powerlines_debug "No completions, probably due to a failure"
|
|
70
|
-
return 1
|
|
71
|
-
end
|
|
72
|
-
|
|
73
|
-
__powerlines_debug "Performed completions and set __powerlines_perform_completion_once_result"
|
|
74
|
-
return 0
|
|
75
|
-
end
|
|
76
|
-
|
|
77
|
-
# This function is used to clear the cached result after completions are run
|
|
78
|
-
function __powerlines_clear_perform_completion_once_result
|
|
79
|
-
__powerlines_debug ""
|
|
80
|
-
__powerlines_debug "========= clearing previously set __powerlines_perform_completion_once_result variable =========="
|
|
81
|
-
set --erase __powerlines_perform_completion_once_result
|
|
82
|
-
__powerlines_debug "Successfully erased the variable __powerlines_perform_completion_once_result"
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
function __powerlines_requires_order_preservation
|
|
86
|
-
__powerlines_debug ""
|
|
87
|
-
__powerlines_debug "========= checking if order preservation is required =========="
|
|
88
|
-
|
|
89
|
-
__powerlines_perform_completion_once
|
|
90
|
-
if test -z "$__powerlines_perform_completion_once_result"
|
|
91
|
-
__powerlines_debug "Error determining if order preservation is required"
|
|
92
|
-
return 1
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
set -l directive (string sub --start 2 $__powerlines_perform_completion_once_result[-1])
|
|
96
|
-
__powerlines_debug "Directive is: $directive"
|
|
97
|
-
|
|
98
|
-
set -l shellCompDirectiveKeepOrder 32
|
|
99
|
-
set -l keeporder (math (math --scale 0 $directive / $shellCompDirectiveKeepOrder) % 2)
|
|
100
|
-
__powerlines_debug "Keeporder is: $keeporder"
|
|
101
|
-
|
|
102
|
-
if test $keeporder -ne 0
|
|
103
|
-
__powerlines_debug "This does require order preservation"
|
|
104
|
-
return 0
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
__powerlines_debug "This doesn't require order preservation"
|
|
108
|
-
return 1
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
# This function does two things:
|
|
112
|
-
# - Obtain the completions and store them in the global __powerlines_comp_results
|
|
113
|
-
# - Return false if file completion should be performed
|
|
114
|
-
function __powerlines_prepare_completions
|
|
115
|
-
__powerlines_debug ""
|
|
116
|
-
__powerlines_debug "========= starting completion logic =========="
|
|
117
|
-
|
|
118
|
-
# Start fresh
|
|
119
|
-
set --erase __powerlines_comp_results
|
|
120
|
-
|
|
121
|
-
__powerlines_perform_completion_once
|
|
122
|
-
__powerlines_debug "Completion results: $__powerlines_perform_completion_once_result"
|
|
123
|
-
|
|
124
|
-
if test -z "$__powerlines_perform_completion_once_result"
|
|
125
|
-
__powerlines_debug "No completion, probably due to a failure"
|
|
126
|
-
# Might as well do file completion, in case it helps
|
|
127
|
-
return 1
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
set -l directive (string sub --start 2 $__powerlines_perform_completion_once_result[-1])
|
|
131
|
-
set --global __powerlines_comp_results $__powerlines_perform_completion_once_result[1..-2]
|
|
132
|
-
|
|
133
|
-
__powerlines_debug "Completions are: $__powerlines_comp_results"
|
|
134
|
-
__powerlines_debug "Directive is: $directive"
|
|
135
|
-
|
|
136
|
-
set -l shellCompDirectiveError 1
|
|
137
|
-
set -l shellCompDirectiveNoSpace 2
|
|
138
|
-
set -l shellCompDirectiveNoFileComp 4
|
|
139
|
-
set -l shellCompDirectiveFilterFileExt 8
|
|
140
|
-
set -l shellCompDirectiveFilterDirs 16
|
|
141
|
-
if test -z "$directive"
|
|
142
|
-
set directive 0
|
|
143
|
-
end
|
|
144
|
-
|
|
145
|
-
set -l compErr (math (math --scale 0 $directive / $shellCompDirectiveError) % 2)
|
|
146
|
-
if test $compErr -eq 1
|
|
147
|
-
__powerlines_debug "Received error directive: aborting."
|
|
148
|
-
# Might as well do file completion, in case it helps
|
|
149
|
-
return 1
|
|
150
|
-
end
|
|
151
|
-
|
|
152
|
-
set -l filefilter (math (math --scale 0 $directive / $shellCompDirectiveFilterFileExt) % 2)
|
|
153
|
-
set -l dirfilter (math (math --scale 0 $directive / $shellCompDirectiveFilterDirs) % 2)
|
|
154
|
-
if test $filefilter -eq 1; or test $dirfilter -eq 1
|
|
155
|
-
__powerlines_debug "File extension filtering or directory filtering not supported"
|
|
156
|
-
# Do full file completion instead
|
|
157
|
-
return 1
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
set -l nospace (math (math --scale 0 $directive / $shellCompDirectiveNoSpace) % 2)
|
|
161
|
-
set -l nofiles (math (math --scale 0 $directive / $shellCompDirectiveNoFileComp) % 2)
|
|
162
|
-
|
|
163
|
-
__powerlines_debug "nospace: $nospace, nofiles: $nofiles"
|
|
164
|
-
|
|
165
|
-
# If we want to prevent a space, or if file completion is NOT disabled,
|
|
166
|
-
# we need to count the number of valid completions.
|
|
167
|
-
# To do so, we will filter on prefix as the completions we have received
|
|
168
|
-
# may not already be filtered so as to allow fish to match on different
|
|
169
|
-
# criteria than the prefix.
|
|
170
|
-
if test $nospace -ne 0; or test $nofiles -eq 0
|
|
171
|
-
set -l prefix (commandline -t | string escape --style=regex)
|
|
172
|
-
__powerlines_debug "prefix: $prefix"
|
|
173
|
-
|
|
174
|
-
set -l completions (string match -r -- "^$prefix.*" $__powerlines_comp_results)
|
|
175
|
-
set --global __powerlines_comp_results $completions
|
|
176
|
-
__powerlines_debug "Filtered completions are: $__powerlines_comp_results"
|
|
177
|
-
|
|
178
|
-
# Important not to quote the variable for count to work
|
|
179
|
-
set -l numComps (count $__powerlines_comp_results)
|
|
180
|
-
__powerlines_debug "numComps: $numComps"
|
|
181
|
-
|
|
182
|
-
if test $numComps -eq 1; and test $nospace -ne 0
|
|
183
|
-
# We must first split on to get rid of the descriptions to be
|
|
184
|
-
# able to check what the actual completion will be.
|
|
185
|
-
# We don't need descriptions anyway since there is only a single
|
|
186
|
-
# real completion which the shell will expand immediately.
|
|
187
|
-
set -l split (string split --max 1 " " $__powerlines_comp_results[1])
|
|
188
|
-
|
|
189
|
-
# Fish won't add a space if the completion ends with any
|
|
190
|
-
# of the following characters: @=/:.,
|
|
191
|
-
set -l lastChar (string sub -s -1 -- $split)
|
|
192
|
-
if not string match -r -q "[@=/:.,]" -- "$lastChar"
|
|
193
|
-
# In other cases, to support the "nospace" directive we trick the shell
|
|
194
|
-
# by outputting an extra, longer completion.
|
|
195
|
-
__powerlines_debug "Adding second completion to perform nospace directive"
|
|
196
|
-
set --global __powerlines_comp_results $split[1] $split[1].
|
|
197
|
-
__powerlines_debug "Completions are now: $__powerlines_comp_results"
|
|
198
|
-
end
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
if test $numComps -eq 0; and test $nofiles -eq 0
|
|
202
|
-
# To be consistent with bash and zsh, we only trigger file
|
|
203
|
-
# completion when there are no other completions
|
|
204
|
-
__powerlines_debug "Requesting file completion"
|
|
205
|
-
return 1
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
return 0
|
|
210
|
-
end
|
|
211
|
-
|
|
212
|
-
# Since Fish completions are only loaded once the user triggers them, we trigger them ourselves
|
|
213
|
-
# so we can properly delete any completions provided by another script.
|
|
214
|
-
# Only do this if the program can be found, or else fish may print some errors; besides,
|
|
215
|
-
# the existing completions will only be loaded if the program can be found.
|
|
216
|
-
if type -q "powerlines"
|
|
217
|
-
# The space after the program name is essential to trigger completion for the program
|
|
218
|
-
# and not completion of the program name itself.
|
|
219
|
-
# Also, we use '> /dev/null 2>&1' since '&>' is not supported in older versions of fish.
|
|
220
|
-
complete --do-complete "powerlines " > /dev/null 2>&1
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# Remove any pre-existing completions for the program since we will be handling all of them.
|
|
224
|
-
complete -c powerlines -e
|
|
225
|
-
# This will get called after the two calls below and clear the cached result
|
|
226
|
-
complete -c powerlines -n '__powerlines_clear_perform_completion_once_result'
|
|
227
|
-
# The call to __powerlines_prepare_completions will setup __powerlines_comp_results
|
|
228
|
-
# which provides the program's completion choices.
|
|
229
|
-
# If this doesn't require order preservation, we don't use the -k flag
|
|
230
|
-
complete -c powerlines -n 'not __powerlines_requires_order_preservation && __powerlines_prepare_completions' -f -a '$__powerlines_comp_results'
|
|
231
|
-
# Otherwise we use the -k flag
|
|
232
|
-
complete -k -c powerlines -n '__powerlines_requires_order_preservation && __powerlines_prepare_completions' -f -a '$__powerlines_comp_results'
|
|
233
|
-
`,p=f.split(`
|
|
234
|
-
`).map(f=>f.trim()?f.trim().startsWith(`#`)?`${c(f)}`:n(f).replaceAll(/(?<=\$(\{|\()).*(?=(\}\)))/g,o(`$&`)).replaceAll(/(\"|\').*(\"|\')/g,u(`$&`)).replaceAll(/(\[|\]|\(|\)|\||<|>|\$\(|\$?\{|\}|\+|=|;|:)/g,l(s(`$&`))).replaceAll(/(function|complete)\s+/g,o(`$&`)).replaceAll(/(?<=(function|complete)\s+)\w/g,l(i(`$&`))).replaceAll(/set\s+/g,t(`$&`)).replaceAll(/(?<=set\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(/\s__\w/g,l(r(`$&`))).replaceAll(/(?<=\s)(-\w|--\w[\w-]*)(?=\s|$)/g,l(d(`$&`))):``).join(`
|
|
235
|
-
`);export{p as n,f as t};
|
package/bin/types-CK9oFG7L.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,L as t,M as n,j as r,s as i}from"./prompts-D_Rv-lNz.mjs";function a(){t(``),t(i(n.heading.secondary(`Usage:`))),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`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-D_Rv-lNz.mjs";import{t as b}from"./types-CK9oFG7L.mjs";import{t as x}from"./update-ChLxGxOi.mjs";import{t as S}from"./create-powerlines-DvusHjN3.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 S(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 x(),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?b():d(`types`,[`types`],[n],w)}export{T as handler};
|
package/bin/update-ChLxGxOi.mjs
DELETED
|
@@ -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-D_Rv-lNz.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};
|
package/bin/update-ZLGSIorW.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{C as e,L as t,M as n,j as r,s as i,x as a}from"./prompts-D_Rv-lNz.mjs";function o(){t(`${i(n.heading.secondary(`Tags: `))} ${n.tags.utility?n.tags.utility(a(` Utility `)):n.tags.$default(a(` Utility `))}`,{padding:0}),t(``),t(i(n.heading.secondary(`Usage:`))),t(n.body.secondary(`${n.usage.bin(`>_ powerlines`)} ${n.usage.command(`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-D_Rv-lNz.mjs";import{t as b}from"./update-ChLxGxOi.mjs";import{t as x}from"./update-ZLGSIorW.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};
|
package/bin/zsh-HSOqkRfN.mjs
DELETED
|
@@ -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-D_Rv-lNz.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 };
|