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.
Files changed (56) hide show
  1. package/dist/config.mjs +0 -2
  2. package/dist/index.mjs +0 -1
  3. package/dist/package.cjs +1 -1
  4. package/dist/package.mjs +1 -1
  5. package/dist/plugin-utils.mjs +0 -2
  6. package/dist/storage.mjs +0 -2
  7. package/package.json +13 -13
  8. package/bin/bin.mjs +0 -8
  9. package/bin/build-DjyA6GQp.mjs +0 -1
  10. package/bin/build.mjs +0 -2
  11. package/bin/changelog-B8i9yY3P.mjs +0 -1
  12. package/bin/changelog.mjs +0 -524
  13. package/bin/clean-B9CJqZ1x.mjs +0 -1
  14. package/bin/clean.mjs +0 -2
  15. package/bin/completions-bash-config.mjs +0 -7
  16. package/bin/completions-bash-script.mjs +0 -7
  17. package/bin/completions-fish-config.mjs +0 -7
  18. package/bin/completions-fish-script.mjs +0 -7
  19. package/bin/completions-powershell-config.mjs +0 -7
  20. package/bin/completions-powershell-script.mjs +0 -7
  21. package/bin/completions-zsh-config.mjs +0 -7
  22. package/bin/completions-zsh-script.mjs +0 -7
  23. package/bin/config-BYBQBrQG.mjs +0 -1
  24. package/bin/config-C1fmmSMf.mjs +0 -1
  25. package/bin/config-CK793fTW.mjs +0 -1
  26. package/bin/config-Zf66j-rA.mjs +0 -1
  27. package/bin/create-DqStfXER.mjs +0 -1
  28. package/bin/create-powerlines-DvusHjN3.mjs +0 -1
  29. package/bin/create.mjs +0 -3
  30. package/bin/deploy-DnH_cRzq.mjs +0 -1
  31. package/bin/deploy.mjs +0 -2
  32. package/bin/docs-HAdp8uaP.mjs +0 -1
  33. package/bin/docs.mjs +0 -2
  34. package/bin/gc-DPUIueyK.mjs +0 -1
  35. package/bin/gc.mjs +0 -3
  36. package/bin/help.mjs +0 -3
  37. package/bin/lint-Ba5PLVn8.mjs +0 -1
  38. package/bin/lint.mjs +0 -2
  39. package/bin/prepare-CGt61HvT.mjs +0 -1
  40. package/bin/prepare.mjs +0 -2
  41. package/bin/prompts-D_Rv-lNz.mjs +0 -27
  42. package/bin/script-Bd5rrPMc.mjs +0 -1
  43. package/bin/script-DG76mLcM.mjs +0 -1
  44. package/bin/script-ad5QoVHh.mjs +0 -1
  45. package/bin/script-zD-5QlvH.mjs +0 -1
  46. package/bin/shared-BItwCZrh.mjs +0 -216
  47. package/bin/shared-HomY1B9h.mjs +0 -103
  48. package/bin/shared-ZYvIh4BL.mjs +0 -249
  49. package/bin/shared-l2cUQ8pt.mjs +0 -235
  50. package/bin/types-CK9oFG7L.mjs +0 -1
  51. package/bin/types.mjs +0 -2
  52. package/bin/update-ChLxGxOi.mjs +0 -1
  53. package/bin/update-ZLGSIorW.mjs +0 -1
  54. package/bin/update.mjs +0 -2
  55. package/bin/zsh-HSOqkRfN.mjs +0 -1
  56. package/dist/_virtual/_rolldown/runtime.mjs +0 -36
package/bin/changelog.mjs DELETED
@@ -1,524 +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"./changelog-B8i9yY3P.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(`Changelog`).length+2))/2),0))+_(a.banner.command.primary(`Changelog`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Changelog`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Display the Powerlines changelog.`)),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))}function C(){console.log(`${a.body.primary(`textColors.body.primary("[Image: Powerlines' logo banner]")`)}
3
-
4
- ${_(a.heading.primary(`Changelog for Powerlines - CLI`))}
5
-
6
- ${_(a.heading.secondary(`0.47.125 (06/05/2026)`))}
7
-
8
- ${_(a.heading.tertiary(`Features`))}
9
-
10
- ${a.body.primary(`• cli: Updated CLI to deploy as standalone package (990f64bc9)`)}
11
-
12
- ${_(a.heading.secondary(`0.2.40 (05/13/2026)`))}
13
-
14
- ${_(a.heading.tertiary(`Updated Dependencies`))}
15
-
16
- ${a.body.primary(`• Updated powerlines to v0.47.16`)}
17
-
18
- ${_(a.heading.secondary(`0.2.39 (05/13/2026)`))}
19
-
20
- ${_(a.heading.tertiary(`Updated Dependencies`))}
21
-
22
- ${a.body.primary(`• Updated deepkit to v0.8.66
23
- • Updated powerlines to v0.47.15`)}
24
-
25
- ${_(a.heading.secondary(`0.2.38 (05/13/2026)`))}
26
-
27
- ${_(a.heading.tertiary(`Updated Dependencies`))}
28
-
29
- ${a.body.primary(`• Updated deepkit to v0.8.65
30
- • Updated powerlines to v0.47.14`)}
31
-
32
- ${_(a.heading.secondary(`0.2.37 (05/13/2026)`))}
33
-
34
- ${_(a.heading.tertiary(`Updated Dependencies`))}
35
-
36
- ${a.body.primary(`• Updated powerlines to v0.47.13`)}
37
-
38
- ${_(a.heading.secondary(`0.2.36 (05/13/2026)`))}
39
-
40
- ${_(a.heading.tertiary(`Updated Dependencies`))}
41
-
42
- ${a.body.primary(`• Updated powerlines to v0.47.12`)}
43
-
44
- ${_(a.heading.secondary(`0.2.35 (05/13/2026)`))}
45
-
46
- ${_(a.heading.tertiary(`Updated Dependencies`))}
47
-
48
- ${a.body.primary(`• Updated powerlines to v0.47.11`)}
49
-
50
- ${_(a.heading.secondary(`0.2.34 (05/13/2026)`))}
51
-
52
- ${_(a.heading.tertiary(`Updated Dependencies`))}
53
-
54
- ${a.body.primary(`• Updated powerlines to v0.47.10`)}
55
-
56
- ${_(a.heading.secondary(`0.2.33 (05/13/2026)`))}
57
-
58
- ${_(a.heading.tertiary(`Updated Dependencies`))}
59
-
60
- ${a.body.primary(`• Updated powerlines to v0.47.9`)}
61
-
62
- ${_(a.heading.secondary(`0.2.32 (05/13/2026)`))}
63
-
64
- ${_(a.heading.tertiary(`Updated Dependencies`))}
65
-
66
- ${a.body.primary(`• Updated powerlines to v0.47.8`)}
67
-
68
- ${_(a.heading.secondary(`0.2.30 (05/12/2026)`))}
69
-
70
- ${_(a.heading.tertiary(`Updated Dependencies`))}
71
-
72
- ${a.body.primary(`• Updated powerlines to v0.47.7`)}
73
-
74
- ${_(a.heading.secondary(`0.2.29 (05/12/2026)`))}
75
-
76
- ${_(a.heading.tertiary(`Updated Dependencies`))}
77
-
78
- ${a.body.primary(`• Updated powerlines to v0.47.6`)}
79
-
80
- ${_(a.heading.secondary(`0.2.28 (05/12/2026)`))}
81
-
82
- ${_(a.heading.tertiary(`Miscellaneous`))}
83
-
84
- ${a.body.primary(`• monorepo: Reorganize repository folder structure (c2447100f)`)}
85
-
86
- ${_(a.heading.tertiary(`Updated Dependencies`))}
87
-
88
- ${a.body.primary(`• Updated powerlines to v0.47.5`)}
89
-
90
- ${_(a.heading.secondary(`0.2.27 (04/26/2026)`))}
91
-
92
- ${_(a.heading.tertiary(`Updated Dependencies`))}
93
-
94
- ${a.body.primary(`• Updated powerlines to v0.43.24
95
- • Updated deepkit to v0.8.27`)}
96
-
97
- ${_(a.heading.secondary(`0.2.26 (04/26/2026)`))}
98
-
99
- ${_(a.heading.tertiary(`Updated Dependencies`))}
100
-
101
- ${a.body.primary(`• Updated powerlines to v0.43.23
102
- • Updated deepkit to v0.8.26`)}
103
-
104
- ${_(a.heading.secondary(`0.2.25 (04/26/2026)`))}
105
-
106
- ${_(a.heading.tertiary(`Updated Dependencies`))}
107
-
108
- ${a.body.primary(`• Updated powerlines to v0.43.22
109
- • Updated deepkit to v0.8.25`)}
110
-
111
- ${_(a.heading.secondary(`0.2.24 (04/26/2026)`))}
112
-
113
- ${_(a.heading.tertiary(`Updated Dependencies`))}
114
-
115
- ${a.body.primary(`• Updated powerlines to v0.43.21
116
- • Updated deepkit to v0.8.24`)}
117
-
118
- ${_(a.heading.secondary(`0.2.23 (04/26/2026)`))}
119
-
120
- ${_(a.heading.tertiary(`Updated Dependencies`))}
121
-
122
- ${a.body.primary(`• Updated powerlines to v0.43.20
123
- • Updated deepkit to v0.8.23`)}
124
-
125
- ${_(a.heading.secondary(`0.2.22 (04/25/2026)`))}
126
-
127
- ${_(a.heading.tertiary(`Updated Dependencies`))}
128
-
129
- ${a.body.primary(`• Updated powerlines to v0.43.19
130
- • Updated deepkit to v0.8.22`)}
131
-
132
- ${_(a.heading.secondary(`0.2.21 (04/25/2026)`))}
133
-
134
- ${_(a.heading.tertiary(`Updated Dependencies`))}
135
-
136
- ${a.body.primary(`• Updated powerlines to v0.43.18
137
- • Updated deepkit to v0.8.21`)}
138
-
139
- ${_(a.heading.secondary(`0.2.19 (04/25/2026)`))}
140
-
141
- ${_(a.heading.tertiary(`Updated Dependencies`))}
142
-
143
- ${a.body.primary(`• Updated powerlines to v0.43.17
144
- • Updated deepkit to v0.8.20`)}
145
-
146
- ${_(a.heading.secondary(`0.2.18 (04/25/2026)`))}
147
-
148
- ${_(a.heading.tertiary(`Updated Dependencies`))}
149
-
150
- ${a.body.primary(`• Updated powerlines to v0.43.16
151
- • Updated deepkit to v0.8.19`)}
152
-
153
- ${_(a.heading.secondary(`0.2.17 (04/25/2026)`))}
154
-
155
- ${_(a.heading.tertiary(`Updated Dependencies`))}
156
-
157
- ${a.body.primary(`• Updated powerlines to v0.43.15
158
- • Updated deepkit to v0.8.18`)}
159
-
160
- ${_(a.heading.secondary(`0.2.16 (04/25/2026)`))}
161
-
162
- ${_(a.heading.tertiary(`Updated Dependencies`))}
163
-
164
- ${a.body.primary(`• Updated powerlines to v0.43.14
165
- • Updated deepkit to v0.8.17`)}
166
-
167
- ${_(a.heading.secondary(`0.2.15 (04/25/2026)`))}
168
-
169
- ${_(a.heading.tertiary(`Updated Dependencies`))}
170
-
171
- ${a.body.primary(`• Updated powerlines to v0.43.13
172
- • Updated deepkit to v0.8.16`)}
173
-
174
- ${_(a.heading.secondary(`0.2.14 (04/24/2026)`))}
175
-
176
- ${_(a.heading.tertiary(`Updated Dependencies`))}
177
-
178
- ${a.body.primary(`• Updated powerlines to v0.43.12
179
- • Updated deepkit to v0.8.15`)}
180
-
181
- ${_(a.heading.secondary(`0.2.13 (04/24/2026)`))}
182
-
183
- ${_(a.heading.tertiary(`Updated Dependencies`))}
184
-
185
- ${a.body.primary(`• Updated powerlines to v0.43.11
186
- • Updated deepkit to v0.8.14`)}
187
-
188
- ${_(a.heading.secondary(`0.2.12 (04/24/2026)`))}
189
-
190
- ${_(a.heading.tertiary(`Updated Dependencies`))}
191
-
192
- ${a.body.primary(`• Updated powerlines to v0.43.10
193
- • Updated deepkit to v0.8.13`)}
194
-
195
- ${_(a.heading.secondary(`0.2.11 (04/24/2026)`))}
196
-
197
- ${_(a.heading.tertiary(`Updated Dependencies`))}
198
-
199
- ${a.body.primary(`• Updated powerlines to v0.43.9
200
- • Updated deepkit to v0.8.12`)}
201
-
202
- ${_(a.heading.secondary(`0.2.10 (04/24/2026)`))}
203
-
204
- ${_(a.heading.tertiary(`Updated Dependencies`))}
205
-
206
- ${a.body.primary(`• Updated powerlines to v0.43.8
207
- • Updated deepkit to v0.8.11`)}
208
-
209
- ${_(a.heading.secondary(`0.2.9 (04/23/2026)`))}
210
-
211
- ${_(a.heading.tertiary(`Updated Dependencies`))}
212
-
213
- ${a.body.primary(`• Updated powerlines to v0.43.7`)}
214
-
215
- ${_(a.heading.secondary(`0.2.8 (04/23/2026)`))}
216
-
217
- ${_(a.heading.tertiary(`Updated Dependencies`))}
218
-
219
- ${a.body.primary(`• Updated powerlines to v0.43.6
220
- • Updated deepkit to v0.8.10`)}
221
-
222
- ${_(a.heading.secondary(`0.2.7 (04/23/2026)`))}
223
-
224
- ${_(a.heading.tertiary(`Updated Dependencies`))}
225
-
226
- ${a.body.primary(`• Updated powerlines to v0.43.5
227
- • Updated deepkit to v0.8.9`)}
228
-
229
- ${_(a.heading.secondary(`0.2.6 (04/22/2026)`))}
230
-
231
- ${_(a.heading.tertiary(`Updated Dependencies`))}
232
-
233
- ${a.body.primary(`• Updated powerlines to v0.43.4
234
- • Updated deepkit to v0.8.8`)}
235
-
236
- ${_(a.heading.secondary(`0.2.5 (04/21/2026)`))}
237
-
238
- ${_(a.heading.tertiary(`Updated Dependencies`))}
239
-
240
- ${a.body.primary(`• Updated powerlines to v0.43.3
241
- • Updated deepkit to v0.8.7`)}
242
-
243
- ${_(a.heading.secondary(`0.2.4 (04/21/2026)`))}
244
-
245
- ${_(a.heading.tertiary(`Updated Dependencies`))}
246
-
247
- ${a.body.primary(`• Updated powerlines to v0.43.2
248
- • Updated deepkit to v0.8.6`)}
249
-
250
- ${_(a.heading.secondary(`0.2.3 (04/21/2026)`))}
251
-
252
- ${_(a.heading.tertiary(`Updated Dependencies`))}
253
-
254
- ${a.body.primary(`• Updated powerlines to v0.43.1
255
- • Updated deepkit to v0.8.5`)}
256
-
257
- ${_(a.heading.secondary(`0.2.2 (04/21/2026)`))}
258
-
259
- ${_(a.heading.tertiary(`Features`))}
260
-
261
- ${a.body.primary(`• powerlines: Added engine to support multi-process Powerlines runs (75ea086a8)`)}
262
-
263
- ${_(a.heading.tertiary(`Updated Dependencies`))}
264
-
265
- ${a.body.primary(`• Updated powerlines to v0.43.0
266
- • Updated deepkit to v0.8.4`)}
267
-
268
- ${_(a.heading.secondary(`0.2.1 (04/17/2026)`))}
269
-
270
- ${_(a.heading.tertiary(`Bug Fixes`))}
271
-
272
- ${a.body.primary(`• cli: Resolve issue building cli package in build script (dba6c7d93)`)}
273
-
274
- ${_(a.heading.tertiary(`Updated Dependencies`))}
275
-
276
- ${a.body.primary(`• Updated powerlines to v0.42.41
277
- • Updated deepkit to v0.8.3`)}
278
-
279
- ${_(a.heading.secondary(`0.2.0 (04/14/2026)`))}
280
-
281
- ${_(a.heading.tertiary(`Features`))}
282
-
283
- ${a.body.primary(`• cli: Added Powerlines commands to CLI application code (fd6a91228)`)}
284
-
285
- ${_(a.heading.tertiary(`Updated Dependencies`))}
286
-
287
- ${a.body.primary(`• Updated powerlines to v0.42.40`)}
288
-
289
- ${_(a.heading.secondary(`0.1.85 (04/14/2026)`))}
290
-
291
- ${_(a.heading.tertiary(`Updated Dependencies`))}
292
-
293
- ${a.body.primary(`• Updated powerlines to v0.42.39
294
- • Updated deepkit to v0.8.2`)}
295
-
296
- ${_(a.heading.secondary(`0.1.84 (04/12/2026)`))}
297
-
298
- ${_(a.heading.tertiary(`Updated Dependencies`))}
299
-
300
- ${a.body.primary(`• Updated powerlines to v0.42.38
301
- • Updated deepkit to v0.8.1`)}
302
-
303
- ${_(a.heading.secondary(`0.1.83 (04/11/2026)`))}
304
-
305
- ${_(a.heading.tertiary(`Updated Dependencies`))}
306
-
307
- ${a.body.primary(`• Updated powerlines to v0.42.37
308
- • Updated deepkit to v0.8.0`)}
309
-
310
- ${_(a.heading.secondary(`0.1.82 (04/10/2026)`))}
311
-
312
- ${_(a.heading.tertiary(`Updated Dependencies`))}
313
-
314
- ${a.body.primary(`• Updated deepkit to v0.7.8`)}
315
-
316
- ${_(a.heading.secondary(`0.1.81 (04/10/2026)`))}
317
-
318
- ${_(a.heading.tertiary(`Updated Dependencies`))}
319
-
320
- ${a.body.primary(`• Updated deepkit to v0.7.7`)}
321
-
322
- ${_(a.heading.secondary(`0.1.80 (04/10/2026)`))}
323
-
324
- ${_(a.heading.tertiary(`Updated Dependencies`))}
325
-
326
- ${a.body.primary(`• Updated powerlines to v0.42.36
327
- • Updated deepkit to v0.7.6`)}
328
-
329
- ${_(a.heading.secondary(`0.1.79 (04/10/2026)`))}
330
-
331
- ${_(a.heading.tertiary(`Updated Dependencies`))}
332
-
333
- ${a.body.primary(`• Updated powerlines to v0.42.35
334
- • Updated deepkit to v0.7.5`)}
335
-
336
- ${_(a.heading.secondary(`0.1.78 (04/10/2026)`))}
337
-
338
- ${_(a.heading.tertiary(`Updated Dependencies`))}
339
-
340
- ${a.body.primary(`• Updated powerlines to v0.42.34
341
- • Updated deepkit to v0.7.4`)}
342
-
343
- ${_(a.heading.secondary(`0.1.77 (04/06/2026)`))}
344
-
345
- ${_(a.heading.tertiary(`Updated Dependencies`))}
346
-
347
- ${a.body.primary(`• Updated powerlines to v0.42.33
348
- • Updated deepkit to v0.7.3`)}
349
-
350
- ${_(a.heading.secondary(`0.1.76 (04/06/2026)`))}
351
-
352
- ${_(a.heading.tertiary(`Updated Dependencies`))}
353
-
354
- ${a.body.primary(`• Updated powerlines to v0.42.32
355
- • Updated deepkit to v0.7.2`)}
356
-
357
- ${_(a.heading.secondary(`0.1.75 (04/06/2026)`))}
358
-
359
- ${_(a.heading.tertiary(`Updated Dependencies`))}
360
-
361
- ${a.body.primary(`• Updated powerlines to v0.42.31
362
- • Updated deepkit to v0.7.1`)}
363
-
364
- ${_(a.heading.secondary(`0.1.74 (04/06/2026)`))}
365
-
366
- ${_(a.heading.tertiary(`Updated Dependencies`))}
367
-
368
- ${a.body.primary(`• Updated powerlines to v0.42.30
369
- • Updated deepkit to v0.7.0`)}
370
-
371
- ${_(a.heading.secondary(`0.1.73 (04/03/2026)`))}
372
-
373
- ${_(a.heading.tertiary(`Updated Dependencies`))}
374
-
375
- ${a.body.primary(`• Updated powerlines to v0.42.29
376
- • Updated deepkit to v0.6.167`)}
377
-
378
- ${_(a.heading.secondary(`0.1.72 (04/03/2026)`))}
379
-
380
- ${_(a.heading.tertiary(`Miscellaneous`))}
381
-
382
- ${a.body.primary(`• cli: Include missing updates to package.json file (aca938b12)`)}
383
-
384
- ${_(a.heading.tertiary(`Updated Dependencies`))}
385
-
386
- ${a.body.primary(`• Updated powerlines to v0.42.28
387
- • Updated deepkit to v0.6.166`)}
388
-
389
- ${_(a.heading.secondary(`0.1.71 (04/01/2026)`))}
390
-
391
- ${_(a.heading.tertiary(`Updated Dependencies`))}
392
-
393
- ${a.body.primary(`• Updated powerlines to v0.42.27`)}
394
-
395
- ${_(a.heading.secondary(`0.1.70 (03/31/2026)`))}
396
-
397
- ${_(a.heading.tertiary(`Updated Dependencies`))}
398
-
399
- ${a.body.primary(`• Updated powerlines to v0.42.26`)}
400
-
401
- ${_(a.heading.secondary(`0.1.69 (03/28/2026)`))}
402
-
403
- ${_(a.heading.tertiary(`Updated Dependencies`))}
404
-
405
- ${a.body.primary(`• Updated powerlines to v0.42.25`)}
406
-
407
- ${_(a.heading.secondary(`0.1.68 (03/27/2026)`))}
408
-
409
- ${_(a.heading.tertiary(`Updated Dependencies`))}
410
-
411
- ${a.body.primary(`• Updated powerlines to v0.42.24`)}
412
-
413
- ${_(a.heading.secondary(`0.1.67 (03/27/2026)`))}
414
-
415
- ${_(a.heading.tertiary(`Updated Dependencies`))}
416
-
417
- ${a.body.primary(`• Updated powerlines to v0.42.23`)}
418
-
419
- ${_(a.heading.secondary(`0.1.66 (03/26/2026)`))}
420
-
421
- ${_(a.heading.tertiary(`Updated Dependencies`))}
422
-
423
- ${a.body.primary(`• Updated powerlines to v0.42.22`)}
424
-
425
- ${_(a.heading.secondary(`0.1.65 (03/26/2026)`))}
426
-
427
- ${_(a.heading.tertiary(`Updated Dependencies`))}
428
-
429
- ${a.body.primary(`• Updated powerlines to v0.42.21`)}
430
-
431
- ${_(a.heading.secondary(`0.1.64 (03/25/2026)`))}
432
-
433
- ${_(a.heading.tertiary(`Updated Dependencies`))}
434
-
435
- ${a.body.primary(`• Updated powerlines to v0.42.20`)}
436
-
437
- ${_(a.heading.secondary(`0.1.63 (03/23/2026)`))}
438
-
439
- ${_(a.heading.tertiary(`Updated Dependencies`))}
440
-
441
- ${a.body.primary(`• Updated powerlines to v0.42.19`)}
442
-
443
- ${_(a.heading.secondary(`0.1.62 (03/23/2026)`))}
444
-
445
- ${_(a.heading.tertiary(`Updated Dependencies`))}
446
-
447
- ${a.body.primary(`• Updated powerlines to v0.42.18`)}
448
-
449
- ${_(a.heading.secondary(`0.1.61 (03/22/2026)`))}
450
-
451
- ${_(a.heading.tertiary(`Updated Dependencies`))}
452
-
453
- ${a.body.primary(`• Updated powerlines to v0.42.17`)}
454
-
455
- ${_(a.heading.secondary(`0.1.60 (03/22/2026)`))}
456
-
457
- ${_(a.heading.tertiary(`Updated Dependencies`))}
458
-
459
- ${a.body.primary(`• Updated powerlines to v0.42.16`)}
460
-
461
- ${_(a.heading.secondary(`0.1.59 (03/22/2026)`))}
462
-
463
- ${_(a.heading.tertiary(`Updated Dependencies`))}
464
-
465
- ${a.body.primary(`• Updated powerlines to v0.42.15`)}
466
-
467
- ${_(a.heading.secondary(`0.1.58 (03/22/2026)`))}
468
-
469
- ${_(a.heading.tertiary(`Updated Dependencies`))}
470
-
471
- ${a.body.primary(`• Updated powerlines to v0.42.14`)}
472
-
473
- ${_(a.heading.secondary(`0.1.57 (03/22/2026)`))}
474
-
475
- ${_(a.heading.tertiary(`Updated Dependencies`))}
476
-
477
- ${a.body.primary(`• Updated powerlines to v0.42.13`)}
478
-
479
- ${_(a.heading.secondary(`0.1.56 (03/22/2026)`))}
480
-
481
- ${_(a.heading.tertiary(`Updated Dependencies`))}
482
-
483
- ${a.body.primary(`• Updated powerlines to v0.42.12`)}
484
-
485
- ${_(a.heading.secondary(`0.1.55 (03/22/2026)`))}
486
-
487
- ${_(a.heading.tertiary(`Bug Fixes`))}
488
-
489
- ${a.body.primary(`• monorepo: Update pnpm-lock.yaml file (9c01ec1e8)`)}
490
-
491
- ${_(a.heading.tertiary(`Updated Dependencies`))}
492
-
493
- ${a.body.primary(`• Updated powerlines to v0.42.11`)}
494
-
495
- ${_(a.heading.secondary(`0.1.40 (03/14/2026)`))}
496
-
497
- ${_(a.heading.tertiary(`Miscellaneous`))}
498
-
499
- ${a.body.primary(`• monorepo: Update version in README.md files (2d27cc668)
500
- • monorepo: Regenerate README.md files (fc00b8074)`)}
501
-
502
- ${_(a.heading.secondary(`0.1.33 (03/12/2026)`))}
503
-
504
- ${_(a.heading.tertiary(`Bug Fixes`))}
505
-
506
- ${a.body.primary(`• monorepo: Resolve build issues after tsdown upgrade (509fff49b)`)}
507
-
508
- ${_(a.heading.secondary(`0.1.29 (03/11/2026)`))}
509
-
510
- ${_(a.heading.tertiary(`Miscellaneous`))}
511
-
512
- ${a.body.primary(`• monorepo: Regenerate README.md files for workspace (248c3f44e)`)}
513
-
514
- ${_(a.heading.secondary(`0.1.27 (03/11/2026)`))}
515
-
516
- ${_(a.heading.tertiary(`Miscellaneous`))}
517
-
518
- ${a.body.primary(`• monorepo: Reformat workspace packages' source code (4e6846b40)`)}
519
-
520
- ${_(a.heading.secondary(`0.1.0 (02/27/2026)`))}
521
-
522
- ${_(a.heading.tertiary(`Features`))}
523
-
524
- ${a.body.primary(`• cli: Initial check-in of the command-line interface package (1e228eee5)`)}`)}async function w(t=g()){let n={...u()};for(let e=0;e<t.slice(0).length;e++)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];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(`changelog`,[`changelog`],[],C)}export{w as handler};
@@ -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(`clean`)} ${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 clean.`),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 Clean command documentation at ${e(`https://docs.stormsoftware.com/projects/powerlines/reference/cli/clean`)}${n.body.tertiary(`.`)}`),{padding:0}),t(``)}export{a as t};
package/bin/clean.mjs DELETED
@@ -1,2 +0,0 @@
1
- import{$ as e,B as t,G as n,K as r,L as i,M as a,O as o,U as s,V as c,X as l,Y as u,Z as d,a as f,c as p,k as m,nt as h,q as g,s as _,tt as v,z as y}from"./prompts-D_Rv-lNz.mjs";import{t as b}from"./update-ChLxGxOi.mjs";import{t as x}from"./create-powerlines-DvusHjN3.mjs";import{t as S}from"./clean-B9CJqZ1x.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(`Clean`).length+2))/2),0))+_(a.banner.command.primary(`Clean`))+` `.repeat(Math.max(Math.ceil((y().columns-(m(`Clean`).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_(a.banner.description.primary(`Cleans the project by removing build artifacts and temporary files.`)),Math.max(60>y().columns/2?y().columns-6:y().columns-30,20)).forEach(e=>{i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((y().columns-(m(e).length+2))/2),0))+a.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((y().columns-(m(e).length+2))/2),0))+p.banner.outline.primary(`┃`),{consoleFn:console.log})}),i(p.banner.outline.primary(`┃`)+` `.repeat(Math.max(y().columns-2,0))+p.banner.outline.primary(`┃`),{consoleFn:console.log}),i(p.banner.outline.primary(`┗`)+p.banner.outline.primary(`━`.repeat(Math.max(y().columns-35,0)))+` `+_(a.banner.footer.primary(`https://stormsoftware.com`))+` `+p.banner.outline.primary(`━`.repeat(6))+p.banner.outline.primary(`┛`),{consoleFn:console.log}),i(``),t&&!r()&&await s(e))}async function w(e){await(await x(e)).clean(e)}async function T(t=g()){let n={...u()};for(let e=0;e<t.slice(0).length;e++){let r=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];(r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`root=`)||r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`root`)&&(/^--?(root)=/.test(`-`+r.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))?n.root=r.replace(/^--?(root)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``):t.length>e+1&&(n.root=t[++e].trim().replace(/^("|')/,``).replace(/("|')$/,``)))}return await C(),await b(),r()||(i(``),(h||v||e.LOG_LEVEL===`debug`)&&i(a.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),n.help?S():d(`clean`,[`clean`],[n],w)}export{T as handler};
@@ -1,7 +0,0 @@
1
- import{$ as e,A as t,B as n,F as r,G as i,K as a,L as o,M as s,O as c,S as l,U as u,V as d,X as f,Y as p,Z as m,a as h,b as g,c as _,k as v,m as y,nt as b,q as x,r as S,s as C,t as w,tt as T,v as E,z as D}from"./prompts-D_Rv-lNz.mjs";import{t as O}from"./update-ChLxGxOi.mjs";import{n as k,t as A}from"./shared-HomY1B9h.mjs";import{t as j}from"./config-C1fmmSMf.mjs";import M from"node:os";import{join as N}from"node:path";import{readFile as P,writeFile as F}from"node:fs/promises";async function I(e=500){f().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),o(``),o(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+C(s.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log}),c(Math.max(...h.map(e=>v(e).length))>Math.max(D().columns+30,20)?`Powerlines`:`\n${h.join(`
2
- `)}\n`,Math.max(D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+C(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(`Completions - Bash Configuration`).length+2))/2),0))+C(s.banner.command.primary(`Completions - Bash Configuration`))+` `.repeat(Math.max(Math.ceil((D().columns-(v(`Completions - Bash Configuration`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),c(C(s.banner.description.primary(`Update the current system's bash shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>D().columns/2?D().columns-6:D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(D().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-35,0)))+` `+C(s.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),n&&!a()&&await u(e))}async function L(e={},n=`~/.bashrc`){if(e.display!==!0){let e=n.includes(`.`)?n:N(n,`.bashrc`);e.startsWith(`~`)&&(e=N(M.homedir(),e.replace(`~`,``)));let i=``;try{i=await P(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)r(`Configuration file ${C(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await F(e,`${i}\n\n### Begin - Powerlines Shell Completions ###\n\n${A} \n\n### End - Powerlines Bash Completions ###`),t(`Powerlines shell completions have been applied to Bash configuration file at ${C(e)}. Please restart your terminal or run ${g(`source ${e}`)} for the changes to take effect.`)}else o(` ------------------------------------------------- `),o(``),o(`### Begin - Powerlines Bash Completions ###`),o(``),k.split(`
3
- `).map(e=>o(e)),o(``),o(`### End - Powerlines Bash Completions ###`),o(``),o(` ------------------------------------------------- `),o(``),E(`To enable these completions, perform one of the following actions:
4
-
5
- 1) Copy and paste the above script into your shell configuration file (e.g., ~/.bashrc)
6
- 2) Save the above script to a file and source it from your shell configuration file `)}async function R(t=x()){let r={...p(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let i=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=i>4?4:Math.max(0,t.slice(i).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`~/.bashrc`;if(c+0<t.length&&c+0!==i&&(u=t[c+0]),await I(),await O(),a()||(o(``),(b||T||e.LOG_LEVEL===`debug`)&&o(s.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!a()&&u===void 0){if(o(``),!u){let e=await S({message:`Please provide a value for the ${l(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;u=e}o(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${l(`Completions - Bash Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?j():m(`completions/bash/config`,[`completions`,`bash`,`config`],[r,u],L)}export{R as handler};
@@ -1,7 +0,0 @@
1
- import{$ as e,A as t,B as n,G as r,K as i,L as a,M as o,O as s,S as c,U as l,V as u,X as d,Y as f,Z as p,a as m,c as h,k as g,m as _,nt as v,q as y,r as b,s as x,t as S,tt as C,v as w,z as T}from"./prompts-D_Rv-lNz.mjs";import{t as E}from"./update-ChLxGxOi.mjs";import{t as D}from"./script-DG76mLcM.mjs";import{n as O,t as k}from"./shared-HomY1B9h.mjs";import{writeFile as A}from"node:fs/promises";async function j(e=500){d().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||u||(d().set(`is-banner-displayed`,!0),a(``),a(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+o.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+x(o.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-38,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log}),s(Math.max(...m.map(e=>g(e).length))>Math.max(T().columns+30,20)?`Powerlines`:`\n${m.join(`
2
- `)}\n`,Math.max(T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+x(o.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(`Completions - Bash Script`).length+2))/2),0))+x(o.banner.command.primary(`Completions - Bash Script`))+` `.repeat(Math.max(Math.ceil((T().columns-(g(`Completions - Bash Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),s(x(o.banner.description.primary(`Generate a bash completion script for the Powerlines command-line interface.`)),Math.max(60>T().columns/2?T().columns-6:T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+o.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(T().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),a(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-35,0)))+` `+x(o.banner.footer.primary(`https://stormsoftware.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),a(``),n&&!i()&&await l(e))}async function M(e={},n=`./powerlines-completions.bash`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.bash`:n;await A(e,`# Bash script to add completions for Powerlines\n\n${k}`),t(`Powerlines Bash completion script has been generated at ${x(e)}.`)}else a(` ------------------------------------------------- `),a(``),a(`# Bash completion for Powerlines`),a(``),O.split(`
3
- `).map(e=>a(e)),a(``),a(` ------------------------------------------------- `),a(``),w(`To enable these completions, perform one of the following actions:
4
-
5
- 1) Copy and paste the above script into your shell configuration file (e.g., ~/.bashrc)
6
- 2) Save the above script to a file and source it from your shell configuration file `)}async function N(t=y()){let r={...f(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let s=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,l=s>4?4:Math.max(0,t.slice(s).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`./powerlines-completions.bash`;if(l+0<t.length&&l+0!==s&&(u=t[l+0]),await j(),await E(),i()||(a(``),(v||C||e.LOG_LEVEL===`debug`)&&a(o.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!i()&&u===void 0){if(a(``),!u){let e=await b({message:`Please provide a value for the ${c(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(S(e))return;u=e}a(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(_(`The following validation failures were found while processing the user provided input, and must be corrected before the ${c(`Completions - Bash Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?D():p(`completions/bash/script`,[`completions`,`bash`,`script`],[r,u],M)}export{N as handler};
@@ -1,7 +0,0 @@
1
- import{$ as e,A as t,B as n,F as r,G as i,K as a,L as o,M as s,O as c,S as l,U as u,V as d,X as f,Y as p,Z as m,a as h,b as g,c as _,k as v,m as y,nt as b,q as x,r as S,s as C,t as w,tt as T,v as E,z as D}from"./prompts-D_Rv-lNz.mjs";import{t as O}from"./update-ChLxGxOi.mjs";import{t as k}from"./config-BYBQBrQG.mjs";import{n as A,t as j}from"./shared-l2cUQ8pt.mjs";import M from"node:os";import{join as N}from"node:path";import{readFile as P,writeFile as F}from"node:fs/promises";async function I(e=500){f().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),o(``),o(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+C(s.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log}),c(Math.max(...h.map(e=>v(e).length))>Math.max(D().columns+30,20)?`Powerlines`:`\n${h.join(`
2
- `)}\n`,Math.max(D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+C(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(`Completions - Fish Configuration`).length+2))/2),0))+C(s.banner.command.primary(`Completions - Fish Configuration`))+` `.repeat(Math.max(Math.ceil((D().columns-(v(`Completions - Fish Configuration`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),c(C(s.banner.description.primary(`Update the current system's Fish shell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>D().columns/2?D().columns-6:D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(D().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-35,0)))+` `+C(s.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),n&&!a()&&await u(e))}async function L(e={},n=`~/.config/fish/config.fish`){if(e.display!==!0){let e=n.includes(`.`)?n:N(n,`.config`,`fish`,`config.fish`);e.startsWith(`~`)&&(e=N(M.homedir(),e.replace(`~`,``)));let i=``;try{i=await P(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)r(`Configuration file ${C(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await F(e,`${i}\n\n### Begin - Powerlines Fish Completions ###\n\n${j} \n\n### End - Powerlines Fish Completions ###`),t(`Powerlines shell completions have been applied to Fish configuration file at ${C(e)}. Please restart your terminal or run ${g(`source ${e}`)} for the changes to take effect.`)}else o(` ------------------------------------------------- `),o(``),o(`### Begin - Powerlines Fish Completions ###`),o(``),A.split(`
3
- `).map(e=>o(e)),o(``),o(`### End - Powerlines Fish Completions ###`),o(``),o(` ------------------------------------------------- `),o(``),E(`To enable these completions, perform one of the following actions:
4
-
5
- 1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/fish/config.fish)
6
- 2) Save the above script to a file and source it from your shell configuration file `)}async function R(t=x()){let r={...p(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let i=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=i>4?4:Math.max(0,t.slice(i).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`~/.config/fish/config.fish`;if(c+0<t.length&&c+0!==i&&(u=t[c+0]),await I(),await O(),a()||(o(``),(b||T||e.LOG_LEVEL===`debug`)&&o(s.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!a()&&u===void 0){if(o(``),!u){let e=await S({message:`Please provide a value for the ${l(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;u=e}o(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${l(`Completions - Fish Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?k():m(`completions/fish/config`,[`completions`,`fish`,`config`],[r,u],L)}export{R as handler};
@@ -1,7 +0,0 @@
1
- import{$ as e,A as t,B as n,G as r,K as i,L as a,M as o,O as s,S as c,U as l,V as u,X as d,Y as f,Z as p,a as m,c as h,k as g,m as _,nt as v,q as y,r as b,s as x,t as S,tt as C,v as w,z as T}from"./prompts-D_Rv-lNz.mjs";import{t as E}from"./update-ChLxGxOi.mjs";import{n as D,t as O}from"./shared-l2cUQ8pt.mjs";import{t as k}from"./script-zD-5QlvH.mjs";import{writeFile as A}from"node:fs/promises";async function j(e=500){d().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||u||(d().set(`is-banner-displayed`,!0),a(``),a(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+o.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+x(o.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-38,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log}),s(Math.max(...m.map(e=>g(e).length))>Math.max(T().columns+30,20)?`Powerlines`:`\n${m.join(`
2
- `)}\n`,Math.max(T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+x(o.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(`Completions - Fish Script`).length+2))/2),0))+x(o.banner.command.primary(`Completions - Fish Script`))+` `.repeat(Math.max(Math.ceil((T().columns-(g(`Completions - Fish Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),s(x(o.banner.description.primary(`Generate a Fish completion script for the Powerlines command-line interface.`)),Math.max(60>T().columns/2?T().columns-6:T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+o.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(T().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),a(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-35,0)))+` `+x(o.banner.footer.primary(`https://stormsoftware.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),a(``),n&&!i()&&await l(e))}async function M(e={},n=`./powerlines-completions.fish`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.fish`:n;await A(e,`# Fish script to add completions for Powerlines\n\n${O}`),t(`Powerlines Fish completion script has been generated at ${x(e)}.`)}else a(` ------------------------------------------------- `),a(``),a(`# Fish completion for Powerlines`),a(``),D.split(`
3
- `).map(e=>a(e)),a(``),a(` ------------------------------------------------- `),a(``),w(`To enable these completions, perform one of the following actions:
4
-
5
- 1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/fish/config.fish)
6
- 2) Save the above script to a file and source it from your shell configuration file `)}async function N(t=y()){let r={...f(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let s=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,l=s>4?4:Math.max(0,t.slice(s).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`./powerlines-completions.fish`;if(l+0<t.length&&l+0!==s&&(u=t[l+0]),await j(),await E(),i()||(a(``),(v||C||e.LOG_LEVEL===`debug`)&&a(o.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!i()&&u===void 0){if(a(``),!u){let e=await b({message:`Please provide a value for the ${c(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(S(e))return;u=e}a(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(_(`The following validation failures were found while processing the user provided input, and must be corrected before the ${c(`Completions - Fish Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?k():p(`completions/fish/script`,[`completions`,`fish`,`script`],[r,u],M)}export{N as handler};
@@ -1,7 +0,0 @@
1
- import{$ as e,A as t,B as n,F as r,G as i,K as a,L as o,M as s,O as c,S as l,U as u,V as d,X as f,Y as p,Z as m,a as h,b as g,c as _,k as v,m as y,nt as b,q as x,r as S,s as C,t as w,tt as T,v as E,z as D}from"./prompts-D_Rv-lNz.mjs";import{t as O}from"./update-ChLxGxOi.mjs";import{n as k,t as A}from"./shared-ZYvIh4BL.mjs";import{t as j}from"./config-Zf66j-rA.mjs";import M from"node:os";import{join as N}from"node:path";import{readFile as P,writeFile as F}from"node:fs/promises";async function I(e=500){f().get(`is-banner-displayed`)||i(`no-banner`)||i(`hide-banner`)||d||(f().set(`is-banner-displayed`,!0),o(``),o(_.banner.outline.primary(`┏`)+_.banner.outline.primary(`━`.repeat(6))+` `+s.banner.header.primary(`⬤`)+` `+_.banner.outline.primary(`━`)+` `+C(s.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-38,0)))+_.banner.outline.primary(`┓`),{consoleFn:console.log}),c(Math.max(...h.map(e=>v(e).length))>Math.max(D().columns+30,20)?`Powerlines`:`\n${h.join(`
2
- `)}\n`,Math.max(D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+C(s.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(`Completions - PowerShell Configuration`).length+2))/2),0))+C(s.banner.command.primary(`Completions - PowerShell Configuration`))+` `.repeat(Math.max(Math.ceil((D().columns-(v(`Completions - PowerShell Configuration`).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),c(C(s.banner.description.primary(`Update the current system's PowerShell configuration to include completions for the Powerlines command-line interface.`)),Math.max(60>D().columns/2?D().columns-6:D().columns-30,20)).forEach(e=>{o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((D().columns-(v(e).length+2))/2),0))+s.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((D().columns-(v(e).length+2))/2),0))+_.banner.outline.primary(`┃`),{consoleFn:console.log})}),o(_.banner.outline.primary(`┃`)+` `.repeat(Math.max(D().columns-2,0))+_.banner.outline.primary(`┃`),{consoleFn:console.log}),o(_.banner.outline.primary(`┗`)+_.banner.outline.primary(`━`.repeat(Math.max(D().columns-35,0)))+` `+C(s.banner.footer.primary(`https://stormsoftware.com`))+` `+_.banner.outline.primary(`━`.repeat(6))+_.banner.outline.primary(`┛`),{consoleFn:console.log}),o(``),n&&!a()&&await u(e))}async function L(e={},n=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`){if(e.display!==!0){let e=n.includes(`.`)?n:N(n,`Microsoft.PowerShell_profile.ps1`);e.startsWith(`~`)&&(e=N(M.homedir(),e.replace(`~`,``)));let i=``;try{i=await P(e,`utf8`)}catch(t){if(typeof t==`object`&&t&&`code`in t&&t.code===`ENOENT`)r(`Configuration file ${C(e)} does not exist. It will be created when the completion script is written.`);else return{error:t}}await F(e,`${i}\n\n### Begin - Powerlines PowerShell Completions ###\n\n${A} \n\n### End - Powerlines PowerShell Completions ###`),t(`Powerlines shell completions have been applied to PowerShell configuration file at ${C(e)}. Please restart your terminal or run ${g(`source ${e}`)} for the changes to take effect.`)}else o(` ------------------------------------------------- `),o(``),o(`### Begin - Powerlines PowerShell Completions ###`),o(``),k.split(`
3
- `).map(e=>o(e)),o(``),o(`### End - Powerlines PowerShell Completions ###`),o(``),o(` ------------------------------------------------- `),o(``),E(`To enable these completions, perform one of the following actions:
4
-
5
- 1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/powershell/Microsoft.PowerShell_profile.ps1)
6
- 2) Save the above script to a file and source it from your shell configuration file `)}async function R(t=x()){let r={...p(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let i=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,c=i>4?4:Math.max(0,t.slice(i).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`~/.config/powershell/Microsoft.PowerShell_profile.ps1`;if(c+0<t.length&&c+0!==i&&(u=t[c+0]),await I(),await O(),a()||(o(``),(b||T||e.LOG_LEVEL===`debug`)&&o(s.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!a()&&u===void 0){if(o(``),!u){let e=await S({message:`Please provide a value for the ${l(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(w(e))return;u=e}o(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(y(`The following validation failures were found while processing the user provided input, and must be corrected before the ${l(`Completions - PowerShell Configuration`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?j():m(`completions/powershell/config`,[`completions`,`powershell`,`config`],[r,u],L)}export{R as handler};
@@ -1,7 +0,0 @@
1
- import{$ as e,A as t,B as n,G as r,K as i,L as a,M as o,O as s,S as c,U as l,V as u,X as d,Y as f,Z as p,a as m,c as h,k as g,m as _,nt as v,q as y,r as b,s as x,t as S,tt as C,v as w,z as T}from"./prompts-D_Rv-lNz.mjs";import{t as E}from"./update-ChLxGxOi.mjs";import{t as D}from"./script-Bd5rrPMc.mjs";import{n as O,t as k}from"./shared-ZYvIh4BL.mjs";import{writeFile as A}from"node:fs/promises";async function j(e=500){d().get(`is-banner-displayed`)||r(`no-banner`)||r(`hide-banner`)||u||(d().set(`is-banner-displayed`,!0),a(``),a(h.banner.outline.primary(`┏`)+h.banner.outline.primary(`━`.repeat(6))+` `+o.banner.header.primary(`⬤`)+` `+h.banner.outline.primary(`━`)+` `+x(o.banner.header.primary(`Powerlines CLI v0.47.125`))+` `+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-38,0)))+h.banner.outline.primary(`┓`),{consoleFn:console.log}),s(Math.max(...m.map(e=>g(e).length))>Math.max(T().columns+30,20)?`Powerlines`:`\n${m.join(`
2
- `)}\n`,Math.max(T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+x(o.banner.title.primary(e))+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(`Completions - PowerShell Script`).length+2))/2),0))+x(o.banner.command.primary(`Completions - PowerShell Script`))+` `.repeat(Math.max(Math.ceil((T().columns-(g(`Completions - PowerShell Script`).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),s(x(o.banner.description.primary(`Generate a PowerShell completion script for the Powerlines command-line interface.`)),Math.max(60>T().columns/2?T().columns-6:T().columns-30,20)).forEach(e=>{a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(Math.floor((T().columns-(g(e).length+2))/2),0))+o.banner.description.primary(e)+` `.repeat(Math.max(Math.ceil((T().columns-(g(e).length+2))/2),0))+h.banner.outline.primary(`┃`),{consoleFn:console.log})}),a(h.banner.outline.primary(`┃`)+` `.repeat(Math.max(T().columns-2,0))+h.banner.outline.primary(`┃`),{consoleFn:console.log}),a(h.banner.outline.primary(`┗`)+h.banner.outline.primary(`━`.repeat(Math.max(T().columns-35,0)))+` `+x(o.banner.footer.primary(`https://stormsoftware.com`))+` `+h.banner.outline.primary(`━`.repeat(6))+h.banner.outline.primary(`┛`),{consoleFn:console.log}),a(``),n&&!i()&&await l(e))}async function M(e={},n=`./powerlines-completions.ps1`){if(e.display!==!0){let e=n.includes(`.`)?`${n}.ps1`:n;await A(e,`# PowerShell script to add completions for Powerlines\n\n${k}`),t(`Powerlines PowerShell completion script has been generated at ${x(e)}.`)}else a(` ------------------------------------------------- `),a(``),a(`# PowerShell completions for Powerlines`),a(``),O.split(`
3
- `).map(e=>a(e)),a(``),a(` ------------------------------------------------- `),a(``),w(`To enable these completions, perform one of the following actions:
4
-
5
- 1) Copy and paste the above script into your shell configuration file (e.g., ~/.config/powershell/Microsoft.PowerShell_profile.ps1)
6
- 2) Save the above script to a file and source it from your shell configuration file `)}async function N(t=y()){let r={...f(),display:!0};for(let e=0;e<t.slice(0).length;e++){let n=t[e].length>3&&t[e].startsWith(`--`)?`--${t[e].slice(2).replaceAll(`-`,``).toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)}`:t[e].length>2&&t[e].startsWith(`-`)?`-${t[e].slice(1).replaceAll(`-`,``)}`:t[e];if(n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``).startsWith(`display=`)||n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``)===`display`)if(/^--?(display)=/.test(`-`+n.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))){let e=n.replace(/^--?(display)=/,``).trim().replace(/^("|')/,``).replace(/("|')$/,``).toLowerCase();r.display=!!e&&e.toLowerCase()!==`false`&&e.toLowerCase()!==`f`&&e.toLowerCase()!==`no`&&e!==`n`&&e.toLowerCase()!==`0`&&e.toLowerCase()!==`off`&&e!==`disable`&&e.toLowerCase()!==`disabled`&&e.toLowerCase()!==`never`&&(Number.isNaN(Number.parseFloat(e))||Number.parseFloat(e)>0)}else r.display=!0}let s=Math.max(0,t.slice(4).findIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,l=s>4?4:Math.max(0,t.slice(s).findLastIndex(e=>e.startsWith(`-`)&&/^(display)=?.*$/.test(e.toLowerCase().replaceAll(`-`,``).replaceAll(`_`,``))))+4,u=`./powerlines-completions.ps1`;if(l+0<t.length&&l+0!==s&&(u=t[l+0]),await j(),await E(),i()||(a(``),(v||C||e.LOG_LEVEL===`debug`)&&a(o.body.tertiary(`Debug mode is enabled. Additional debug information may be logged to the console.`))),!n)u||[].push(`Missing required "path" positional argument`);else if(!i()&&u===void 0){if(a(``),!u){let e=await b({message:`Please provide a value for the ${c(`path`)} argument`,description:`An argument that allows the user to specify a custom Path s...`,validate(e){return!e||e.trim()===``?`A value must be provided for this argument`:null}});if(S(e))return;u=e}a(``);let e=[];u||e.push(`Missing required "path" positional argument`),e.length>0&&(_(`The following validation failures were found while processing the user provided input, and must be corrected before the ${c(`Completions - PowerShell Script`)} command can be executed: \n\n${e.map(e=>` - `+e).join(`
7
- `)}`),r.help=!0)}return r.help?D():p(`completions/powershell/script`,[`completions`,`powershell`,`script`],[r,u],M)}export{N as handler};