powerlines 0.47.124 → 0.47.125
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/bin/bin.mjs +9 -0
- package/bin/build-DLpROs1Y.mjs +1 -0
- package/bin/build.mjs +5 -0
- package/bin/changelog-BRROp0c_.mjs +1 -0
- package/bin/changelog.mjs +521 -0
- package/bin/clean-BK0v29iM.mjs +1 -0
- package/bin/clean.mjs +5 -0
- package/bin/completions-bash-config.mjs +9 -0
- package/bin/completions-bash-script.mjs +9 -0
- package/bin/completions-fish-config.mjs +9 -0
- package/bin/completions-fish-script.mjs +9 -0
- package/bin/completions-powershell-config.mjs +9 -0
- package/bin/completions-powershell-script.mjs +9 -0
- package/bin/completions-zsh-config.mjs +9 -0
- package/bin/completions-zsh-script.mjs +9 -0
- package/bin/config-CHoghPrR.mjs +1 -0
- package/bin/config-CY1Qq9ZH.mjs +1 -0
- package/bin/config-CmSSUBEW.mjs +1 -0
- package/bin/config-DVkCUl-v.mjs +1 -0
- package/bin/create-NSNAgFJY.mjs +1 -0
- package/bin/create-powerlines-DeMZsc3_.mjs +1 -0
- package/bin/create.mjs +5 -0
- package/bin/deploy-ULfMjQyY.mjs +1 -0
- package/bin/deploy.mjs +5 -0
- package/bin/docs-BchaiW6S.mjs +1 -0
- package/bin/docs.mjs +5 -0
- package/bin/gc-D7LfDJqD.mjs +1 -0
- package/bin/gc.mjs +7 -0
- package/bin/help.mjs +5 -0
- package/bin/lint-DgwBwH7Y.mjs +1 -0
- package/bin/lint.mjs +5 -0
- package/bin/prepare-BIckwpx0.mjs +1 -0
- package/bin/prepare.mjs +5 -0
- package/bin/prompts-BO1_kAkC.mjs +26 -0
- package/bin/script-DKzNu_a1.mjs +1 -0
- package/bin/script-DLuJ6_sY.mjs +1 -0
- package/bin/script-DNHmJ5AE.mjs +1 -0
- package/bin/script-Dj5dsyLK.mjs +1 -0
- package/bin/shared-6FTnkwEI.mjs +103 -0
- package/bin/shared-C7IWiq-2.mjs +235 -0
- package/bin/shared-Dhxn0TVd.mjs +216 -0
- package/bin/shared-e9pqDaa3.mjs +249 -0
- package/bin/types-Cj1dBpbF.mjs +1 -0
- package/bin/types.mjs +5 -0
- package/bin/upgrade-D7LbxJ-i.mjs +1 -0
- package/bin/upgrade-DoVBmRQU.mjs +1 -0
- package/bin/upgrade.mjs +5 -0
- package/bin/zsh-CT9O9pWB.mjs +3 -0
- package/dist/package.cjs +1 -1
- package/dist/package.mjs +1 -1
- 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-BO1_kAkC.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 @@
|
|
|
1
|
+
import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.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-BO1_kAkC.mjs";import{t as b}from"./types-Cj1dBpbF.mjs";import{t as x}from"./upgrade-D7LbxJ-i.mjs";import{t as S}from"./create-powerlines-DeMZsc3_.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.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,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 S(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 x(),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?b():o(`types`,[`types`],[],w)}export{T as handler};
|
|
@@ -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-BO1_kAkC.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.2.40`,currentVersion:`0.2.40`,isUpToDate:!0,isError:!1};try{let e=await D(`@powerlines/cli`);return{latestVersion:e?.version||`0.2.40`,currentVersion:`0.2.40`,isUpToDate:e?e.version===`0.2.40`:!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 @@
|
|
|
1
|
+
import{M as e,O as t,a as n}from"./prompts-BO1_kAkC.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};
|
package/bin/upgrade.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-BO1_kAkC.mjs";import{t as b}from"./upgrade-D7LbxJ-i.mjs";import{t as x}from"./upgrade-DoVBmRQU.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.2.40`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(l().columns-36,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-BO1_kAkC.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(`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`}],[{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(`zsh`),align:`right`,border:`none`},{value:r.body.tertiary(`Commands to setup Zsh 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(`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`}],[{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`}]]),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
package/dist/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powerlines",
|
|
3
|
-
"version": "0.47.
|
|
3
|
+
"version": "0.47.125",
|
|
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.
|
|
177
|
-
"@powerlines/engine": "^0.49.
|
|
178
|
-
"@powerlines/schema": "^0.11.
|
|
179
|
-
"@powerlines/unplugin": "^0.0.
|
|
176
|
+
"@powerlines/core": "^0.48.47",
|
|
177
|
+
"@powerlines/engine": "^0.49.49",
|
|
178
|
+
"@powerlines/schema": "^0.11.107",
|
|
179
|
+
"@powerlines/unplugin": "^0.0.95",
|
|
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": "
|
|
196
|
+
"gitHead": "30ba301952db7af53c07d369bd22f650e5ca9c45"
|
|
197
197
|
}
|