@decaf-ts/cli 0.4.4 → 0.4.6

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 (63) hide show
  1. package/README.md +1 -1
  2. package/dist/cli.cjs +1 -1
  3. package/dist/cli.cjs.map +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/cli.js.map +1 -1
  6. package/lib/CliWrapper.cjs +254 -91
  7. package/lib/CliWrapper.d.ts +32 -4
  8. package/lib/CliWrapper.js.map +1 -1
  9. package/lib/banners.cjs +394 -0
  10. package/lib/banners.d.ts +3 -0
  11. package/lib/banners.js.map +1 -0
  12. package/lib/demo/cli-module.cjs +9 -39
  13. package/lib/demo/cli-module.d.ts +0 -33
  14. package/lib/demo/cli-module.js.map +1 -1
  15. package/lib/environment.cjs +17 -0
  16. package/lib/environment.d.ts +17 -0
  17. package/lib/environment.js.map +1 -0
  18. package/lib/esm/CliWrapper.d.ts +32 -4
  19. package/lib/esm/CliWrapper.js +255 -92
  20. package/lib/esm/CliWrapper.js.map +1 -1
  21. package/lib/esm/banners.d.ts +3 -0
  22. package/lib/esm/banners.js +391 -0
  23. package/lib/esm/banners.js.map +1 -0
  24. package/lib/esm/demo/cli-module.d.ts +0 -33
  25. package/lib/esm/demo/cli-module.js +9 -39
  26. package/lib/esm/demo/cli-module.js.map +1 -1
  27. package/lib/esm/environment.d.ts +17 -0
  28. package/lib/esm/environment.js +11 -0
  29. package/lib/esm/environment.js.map +1 -0
  30. package/lib/esm/index.d.ts +1 -0
  31. package/lib/esm/index.js +1 -0
  32. package/lib/esm/index.js.map +1 -1
  33. package/lib/esm/logging.d.ts +3 -0
  34. package/lib/esm/logging.js +16 -0
  35. package/lib/esm/logging.js.map +1 -0
  36. package/lib/esm/slogans.d.ts +40 -0
  37. package/lib/esm/slogans.js +142 -0
  38. package/lib/esm/slogans.js.map +1 -0
  39. package/lib/esm/utils-module/cli-module.d.ts +2 -0
  40. package/lib/esm/utils-module/cli-module.js +77 -0
  41. package/lib/esm/utils-module/cli-module.js.map +1 -0
  42. package/lib/esm/utils.js +1 -1
  43. package/lib/esm/utils.js.map +1 -1
  44. package/lib/esm/version.d.ts +1 -1
  45. package/lib/esm/version.js +1 -1
  46. package/lib/index.cjs +1 -0
  47. package/lib/index.d.ts +1 -0
  48. package/lib/index.js.map +1 -1
  49. package/lib/logging.cjs +19 -0
  50. package/lib/logging.d.ts +3 -0
  51. package/lib/logging.js.map +1 -0
  52. package/lib/slogans.cjs +150 -0
  53. package/lib/slogans.d.ts +40 -0
  54. package/lib/slogans.js.map +1 -0
  55. package/lib/utils-module/cli-module.cjs +83 -0
  56. package/lib/utils-module/cli-module.d.ts +2 -0
  57. package/lib/utils-module/cli-module.js.map +1 -0
  58. package/lib/utils.cjs +1 -1
  59. package/lib/utils.js.map +1 -1
  60. package/lib/version.cjs +1 -1
  61. package/lib/version.d.ts +1 -1
  62. package/package.json +3 -2
  63. package/workdocs/assets/slogans.json +194 -0
@@ -0,0 +1,394 @@
1
+ "use strict";
2
+ /* eslint-disable no-useless-escape */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.colorPalettes = exports.banners = exports.mainBanner = void 0;
5
+ exports.mainBanner = "";
6
+ exports.banners = [
7
+ // 1. Standard Block
8
+ `
9
+ ____ _____ ____ _ _____ _____ ____
10
+ | _ \\| ____/ ___| / \\ | ___| |_ _/ ___|
11
+ | | | | _|| | / _ \\ | |_ | | \\___ \\
12
+ | |_| | |__| |___ / ___ \\| _| | | ___) |
13
+ |____/|_____\\____/_/ \\_\\_| |_| |____/
14
+ `,
15
+ // 2. Slant
16
+ `
17
+ ____ __ ______
18
+ / __ \\___ _________ _/ __/_ __/____
19
+ / / / / _ \\/ ___/ __ \`/ /_ / / / ___/
20
+ / /_/ / __/ /__/ /_/ / __/ / / (__ )
21
+ /_____/\\___/\\___/\\__,_/_/ /_/ /____/
22
+ `,
23
+ // 3. ANSI Shadow
24
+ `
25
+ ██████╗ ███████╗ ██████╗ █████╗ ███████╗ ████████╗███████╗
26
+ ██╔══██╗██╔════╝██╔════╝██╔══██╗██╔════╝ ╚══██╔══╝██╔════╝
27
+ ██║ ██║█████╗ ██║ ███████║█████╗ ██║ ███████╗
28
+ ██║ ██║██╔══╝ ██║ ██╔══██║██╔══╝ ██║ ╚════██║
29
+ ██████╔╝███████╗╚██████╗██║ ██║██║ ██║ ███████║
30
+ ╚═════╝ ╚══════╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝
31
+ `,
32
+ // 4. Small Slant
33
+ `
34
+ ___ __ ______
35
+ / _ \\___ _______ _/ _/ /_ __/
36
+ / // / -_) __/ _ \`/ _/ / /
37
+ /____/\\__/\\__/\\_,_/_/ /_/
38
+ `,
39
+ // 5. Bubble
40
+ `
41
+ _ _ _ _ _ _ _
42
+ / \\ / \\ / \\ / \\ / \\ / \\ / \\
43
+ ( D | e | c | a | f ) ( T | S )
44
+ \\_/ \\_/ \\_/ \\_/ \\_/ \\_/ \\_/
45
+ `,
46
+ // 6. Digital
47
+ `
48
+ +--+--+--+--+--+ +--+--+
49
+ |D |e |c |a |f | |T |S |
50
+ +--+--+--+--+--+ +--+--+
51
+ `,
52
+ // 7. Star Wars
53
+ `
54
+ .______ _______ ______ ___ _______ .___________. _______
55
+ | _ \\ | ____| / | / \\ | ____| | | / |
56
+ | | | | | |__ | ,----' / ^ \\ | |__ \`---| |----\` | (----\`
57
+ | | | | | __| | | / /_\\ \\ | __| | | \\ \\
58
+ | \`--' | | |____ | \`----./ _____ \\ | | | | .----) |
59
+ |_______/ |_______| \\______/__/ \\__\\ |__| |__| |_______/
60
+ `,
61
+ // 8. Lean
62
+ `
63
+ _/_/_/ _/_/_/ _/_/_/_/_/ _/_/_/
64
+ _/ _/ _/_/ _/_/_/ _/_/_/ _/ _/ _/
65
+ _/ _/ _/_/_/_/ _/ _/ _/ _/ _/_/_/ _/ _/_/
66
+ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/
67
+ _/_/_/ _/_/_/ _/_/_/ _/_/_/ _/ _/ _/_/_/
68
+ `,
69
+ // 9. Doom
70
+ `
71
+ ______ __ _____ _____
72
+ | _ \\ / _| |_ _/ ___|
73
+ | | | |___ ___ __ _ ___| |_ | | \\ \`--.
74
+ | | | / _ \\/ __/ _\` |/ _ \\ _| | | \`--. \\
75
+ | |/ / __/ (_| (_| | __/ | | | /\\__/ /
76
+ |___/ \\___|\\___\\__,_|\\___|_| \\_/ \\____/
77
+ `,
78
+ // 10. Isometric
79
+ `
80
+ ___ ___ ___ ___ ___ ___ ___
81
+ /\\ \\ /\\ \\ /\\ \\ /\\ \\ /\\ \\ /\\ \\ /\\ \\
82
+ /::\\ \\ /::\\ \\ /::\\ \\ /::\\ \\ /::\\ \\ \\:\\ \\ /::\\ \\
83
+ /:/\\:\\ \\ /:/\\:\\ \\ /:/\\:\\ \\ /:/\\:\\ \\ /:/\\:\\ \\ \\:\\ \\ /:/\\ \\ \\
84
+ /:/ \\:\\__\\ /::\\~\\:\\ \\ /:/ \\:\\ \\ /::\\~\\:\\ \\ /::\\~\\:\\ \\ /::\\ \\ _\\:\\~\\ \\ \\
85
+ /:/__/ \\:|__| /:/\\:\\ \\:\\__\\ /:/__/ \\:\\__\\ /:/\\:\\ \\:\\__\\ /:/\\:\\ \\:\\__\\ /:/\\:\\__\\ /\\ \\:\\ \\ \\__\\
86
+ \\:\\ \\ /:/ / \\:\\~\\:\\ \\/__/ \\:\\ \\ \\/__/ \\/__\\:\\/:/ / \\:\\~\\:\\ \\/__/ /:/ \\/__/ \\:\\ \\:\\ \\/__/
87
+ \\:\\ /:/ / \\:\\ \\:\\__\\ \\:\\ \\ \\::/ / \\:\\ \\:\\__\\ /:/ / \\:\\ \\:\\__\\
88
+ \\:\\/:/ / \\:\\ \\/__/ \\:\\ \\ /:/ / \\:\\ \\/__/ \\/__/ \\:\\/:/ /
89
+ \\::/__/ \\:\\__\\ \\:\\__\\ /:/ / \\:\\__\\ \\::/ /
90
+ ~~ \\/__/ \\/__/ \\/__/ \\/__/ \\/__/
91
+ `,
92
+ // 11. Banner3
93
+ `
94
+ ######## ######## ###### ### ######## ######## ######
95
+ ## ## ## ## ## ## ## ## ## ## ##
96
+ ## ## ## ## ## ## ## ## ##
97
+ ## ## ###### ## ## ## ###### ####### ## ######
98
+ ## ## ## ## ######### ## ## ##
99
+ ## ## ## ## ## ## ## ## ## ## ##
100
+ ######## ######## ###### ## ## ## ## ######
101
+ `,
102
+ // 12. Big
103
+ `
104
+ _____ __ _______ _____
105
+ | __ \ / _| |__ __/ ____|
106
+ | | | | ___ ___ __ _| |_ ______| | | (___
107
+ | | | |/ _ \/ __/ _\` | _|______| | \___ \
108
+ | |__| | __/ (_| (_| | | | | ____) |
109
+ |_____/ \___|\___\__,_|_| |_| |_____/
110
+
111
+
112
+ `,
113
+ // 13. Soft
114
+ `
115
+
116
+ ,------. ,---. ,--------. ,---.
117
+ | .-. \ ,---. ,---. ,--,--./ .-',-----.'--. .--'' .-'
118
+ | | \ :| .-. :| .--'' ,-. || \`-,'-----' | | \`. \`-.
119
+ | '--' /\ --.\ \`--.\ '-' || .-' | | .-' |
120
+ \`-------' \`----' \`---' \`--\`--'\`--' \`--' \`-----'
121
+
122
+ `,
123
+ // 14. Doh
124
+ `
125
+
126
+
127
+ DDDDDDDDDDDDD ffffffffffffffff TTTTTTTTTTTTTTTTTTTTTTT SSSSSSSSSSSSSSS
128
+ D::::::::::::DDD f::::::::::::::::f T:::::::::::::::::::::T SS:::::::::::::::S
129
+ D:::::::::::::::DD f::::::::::::::::::f T:::::::::::::::::::::TS:::::SSSSSS::::::S
130
+ DDD:::::DDDDD:::::D f::::::fffffff:::::f T:::::TT:::::::TT:::::TS:::::S SSSSSSS
131
+ D:::::D D:::::D eeeeeeeeeeee cccccccccccccccc aaaaaaaaaaaaa f:::::f ffffff TTTTTT T:::::T TTTTTTS:::::S
132
+ D:::::D D:::::D ee::::::::::::ee cc:::::::::::::::c a::::::::::::a f:::::f T:::::T S:::::S
133
+ D:::::D D:::::D e::::::eeeee:::::ee c:::::::::::::::::c aaaaaaaaa:::::a f:::::::ffffff T:::::T S::::SSSS
134
+ D:::::D D:::::De::::::e e:::::ec:::::::cccccc:::::c a::::a f::::::::::::f --------------- T:::::T SS::::::SSSSS
135
+ D:::::D D:::::De:::::::eeeee::::::ec::::::c ccccccc aaaaaaa:::::a f::::::::::::f -:::::::::::::- T:::::T SSS::::::::SS
136
+ D:::::D D:::::De:::::::::::::::::e c:::::c aa::::::::::::a f:::::::ffffff --------------- T:::::T SSSSSS::::S
137
+ D:::::D D:::::De::::::eeeeeeeeeee c:::::c a::::aaaa::::::a f:::::f T:::::T S:::::S
138
+ D:::::D D:::::D e:::::::e c::::::c ccccccca::::a a:::::a f:::::f T:::::T S:::::S
139
+ DDD:::::DDDDD:::::D e::::::::e c:::::::cccccc:::::ca::::a a:::::a f:::::::f TT:::::::TT SSSSSSS S:::::S
140
+ D:::::::::::::::DD e::::::::eeeeeeee c:::::::::::::::::ca:::::aaaa::::::a f:::::::f T:::::::::T S::::::SSSSSS:::::S
141
+ D::::::::::::DDD ee:::::::::::::e cc:::::::::::::::c a::::::::::aa:::af:::::::f T:::::::::T S:::::::::::::::SS
142
+ DDDDDDDDDDDDD eeeeeeeeeeeeee cccccccccccccccc aaaaaaaaaa aaaafffffffff TTTTTTTTTTT SSSSSSSSSSSSSSS
143
+
144
+
145
+ `,
146
+ // 15. Cybermedium
147
+ `
148
+ ___ ____ ____ ____ ____ ___ ____
149
+ | \ |___ | |__| |___ __ | [__
150
+ |__/ |___ |___ | | | | ___]
151
+
152
+ `,
153
+ // 17. Roman
154
+ `
155
+ oooooooooo. .o88o. ooooooooooooo
156
+ \`888' \`Y8b 888 \`" 8' 888 \`8 .oooooo..o
157
+ 888 888 .ooooo. .ooooo. .oooo. o888oo 888 d8P' \`Y8
158
+ 888 888 d88' \`88b d88' \`"Y8 \`P )88b 888 888 Y88bo.
159
+ 888 888 888ooo888 888 .oP"888 888 8888888 888 \`"Y8888o.
160
+ 888 d88' 888 .o 888 .o8 d8( 888 888 888 \`"Y88b
161
+ o888bood8P' \`Y8bod8P' \`Y8bod8P' \`Y888""8o o888o o888o oo .d8P
162
+ `,
163
+ // 18. Slant Relief
164
+ `
165
+ __/\\\\\\\\\\\\________________________________________________________/\\\\\________________/\\\\\\\\\\\\\\\_____/\\\\\\\\\\\___
166
+ _\/\\\////////\\\____________________________________________________/\\\///________________\///////\\\/////____/\\\/////////\\\_
167
+ _\/\\\______\//\\\__________________________________________________/\\\__________________________\/\\\________\//\\\______\///__
168
+ _\/\\\_______\/\\\_____/\\\\\\\\______/\\\\\\\\__/\\\\\\\\\______/\\\\\\\\\____/\\\\\\\\\\\_______\/\\\_________\////\\\_________
169
+ _\/\\\_______\/\\\___/\\\/////\\\___/\\\//////__\////////\\\____\////\\\//____\///////////________\/\\\____________\////\\\______
170
+ _\/\\\_______\/\\\__/\\\\\\\\\\\___/\\\___________/\\\\\\\\\\______\/\\\__________________________\/\\\_______________\////\\\___
171
+ _\/\\\_______/\\\__\//\\///////___\//\\\_________/\\\/////\\\______\/\\\__________________________\/\\\________/\\\______\//\\\__
172
+ _\/\\\\\\\\\\\\/____\//\\\\\\\\\\__\///\\\\\\\\_\//\\\\\\\\/\\_____\/\\\__________________________\/\\\_______\///\\\\\\\\\\\/___
173
+ _\////////////_______\//////////_____\////////___\////////\//______\///___________________________\///__________\///////////_____
174
+ `,
175
+ // 19. Banner4
176
+ `
177
+ .########..########..######.....###....########.........########..######.
178
+ .##.....##.##.......##....##...##.##...##..................##....##....##
179
+ .##.....##.##.......##........##...##..##..................##....##......
180
+ .##.....##.######...##.......##.....##.######...#######....##.....######.
181
+ .##.....##.##.......##.......#########.##..................##..........##
182
+ .##.....##.##.......##....##.##.....##.##..................##....##....##
183
+ .########..########..######..##.....##.##..................##.....######.
184
+ `,
185
+ // 20. Future
186
+ `
187
+ ╺┳┓┏━╸┏━╸┏━┓┏━╸ ╺┳╸┏━┓
188
+ ┃┃┣╸ ┃ ┣━┫┣╸ ╺━╸ ┃ ┗━┓
189
+ ╺┻┛┗━╸┗━╸╹ ╹╹ ╹ ┗━┛
190
+ `,
191
+ ];
192
+ exports.colorPalettes = {
193
+ sunset: [
194
+ "\x1b[38;5;215m", // soft orange
195
+ "\x1b[38;5;209m", // coral
196
+ "\x1b[38;5;205m", // pink
197
+ "\x1b[38;5;210m", // peachy
198
+ "\x1b[38;5;217m", // salmon
199
+ "\x1b[38;5;216m", // light coral
200
+ "\x1b[38;5;224m", // light peach
201
+ "\x1b[38;5;230m", // soft cream
202
+ ],
203
+ ocean: [
204
+ "\x1b[38;5;27m", // blue
205
+ "\x1b[38;5;33m", // dodger blue
206
+ "\x1b[38;5;39m", // deep sky blue
207
+ "\x1b[38;5;45m", // light blue
208
+ "\x1b[38;5;51m", // cyan
209
+ "\x1b[38;5;87m", // aqua
210
+ "\x1b[38;5;123m", // pale cyan
211
+ "\x1b[38;5;159m", // pale turquoise
212
+ ],
213
+ forest: [
214
+ "\x1b[38;5;22m", // dark green
215
+ "\x1b[38;5;28m", // green
216
+ "\x1b[38;5;34m", // forest green
217
+ "\x1b[38;5;40m", // lime green
218
+ "\x1b[38;5;46m", // lime
219
+ "\x1b[38;5;82m", // chartreuse
220
+ "\x1b[38;5;118m", // bright green
221
+ "\x1b[38;5;154m", // pale green
222
+ ],
223
+ fire: [
224
+ "\x1b[38;5;196m", // red
225
+ "\x1b[38;5;202m", // orange red
226
+ "\x1b[38;5;208m", // dark orange
227
+ "\x1b[38;5;214m", // orange
228
+ "\x1b[38;5;220m", // gold
229
+ "\x1b[38;5;226m", // yellow
230
+ "\x1b[38;5;228m", // light yellow
231
+ "\x1b[38;5;230m", // cream
232
+ ],
233
+ neon: [
234
+ "\x1b[38;5;198m", // hot pink
235
+ "\x1b[38;5;207m", // medium orchid
236
+ "\x1b[38;5;219m", // plum
237
+ "\x1b[38;5;123m", // cyan
238
+ "\x1b[38;5;51m", // bright cyan
239
+ "\x1b[38;5;46m", // neon green
240
+ "\x1b[38;5;226m", // neon yellow
241
+ "\x1b[38;5;201m", // magenta
242
+ ],
243
+ monochrome: [
244
+ "\x1b[38;5;232m", // black
245
+ "\x1b[38;5;236m", // dark gray
246
+ "\x1b[38;5;240m", // gray
247
+ "\x1b[38;5;244m", // light gray
248
+ "\x1b[38;5;248m", // silver
249
+ "\x1b[38;5;252m", // white smoke
250
+ "\x1b[38;5;255m", // white
251
+ "\x1b[38;5;250m", // gray
252
+ ],
253
+ pastel: [
254
+ "\x1b[38;5;217m", // pastel pink
255
+ "\x1b[38;5;223m", // pastel orange
256
+ "\x1b[38;5;229m", // pastel yellow
257
+ "\x1b[38;5;157m", // pastel green
258
+ "\x1b[38;5;159m", // pastel cyan
259
+ "\x1b[38;5;189m", // pastel blue
260
+ "\x1b[38;5;183m", // pastel purple
261
+ "\x1b[38;5;225m", // pastel magenta
262
+ ],
263
+ cyberpunk: [
264
+ "\x1b[38;5;201m", // magenta
265
+ "\x1b[38;5;198m", // deep pink
266
+ "\x1b[38;5;165m", // purple
267
+ "\x1b[38;5;93m", // purple blue
268
+ "\x1b[38;5;51m", // cyan
269
+ "\x1b[38;5;45m", // light blue
270
+ "\x1b[38;5;21m", // blue
271
+ "\x1b[38;5;226m", // yellow
272
+ ],
273
+ earth: [
274
+ "\x1b[38;5;94m", // brown
275
+ "\x1b[38;5;130m", // dark orange
276
+ "\x1b[38;5;136m", // gold
277
+ "\x1b[38;5;100m", // olive
278
+ "\x1b[38;5;58m", // dark olive
279
+ "\x1b[38;5;22m", // dark green
280
+ "\x1b[38;5;137m", // rosy brown
281
+ "\x1b[38;5;180m", // tan
282
+ ],
283
+ rainbow: [
284
+ "\x1b[38;5;196m", // red
285
+ "\x1b[38;5;208m", // orange
286
+ "\x1b[38;5;226m", // yellow
287
+ "\x1b[38;5;46m", // green
288
+ "\x1b[38;5;21m", // blue
289
+ "\x1b[38;5;57m", // indigo
290
+ "\x1b[38;5;129m", // violet
291
+ "\x1b[38;5;201m", // magenta
292
+ ],
293
+ aurora: [
294
+ "\x1b[38;5;57m",
295
+ "\x1b[38;5;93m",
296
+ "\x1b[38;5;111m",
297
+ "\x1b[38;5;147m",
298
+ "\x1b[38;5;183m",
299
+ "\x1b[38;5;189m",
300
+ "\x1b[38;5;195m",
301
+ "\x1b[38;5;201m",
302
+ ],
303
+ dusk: [
304
+ "\x1b[38;5;17m",
305
+ "\x1b[38;5;18m",
306
+ "\x1b[38;5;19m",
307
+ "\x1b[38;5;20m",
308
+ "\x1b[38;5;53m",
309
+ "\x1b[38;5;54m",
310
+ "\x1b[38;5;55m",
311
+ "\x1b[38;5;57m",
312
+ ],
313
+ electric: [
314
+ "\x1b[38;5;45m",
315
+ "\x1b[38;5;51m",
316
+ "\x1b[38;5;63m",
317
+ "\x1b[38;5;75m",
318
+ "\x1b[38;5;81m",
319
+ "\x1b[38;5;87m",
320
+ "\x1b[38;5;93m",
321
+ "\x1b[38;5;99m",
322
+ ],
323
+ mint: [
324
+ "\x1b[38;5;85m",
325
+ "\x1b[38;5;118m",
326
+ "\x1b[38;5;121m",
327
+ "\x1b[38;5;125m",
328
+ "\x1b[38;5;149m",
329
+ "\x1b[38;5;153m",
330
+ "\x1b[38;5;187m",
331
+ "\x1b[38;5;190m",
332
+ ],
333
+ carnival: [
334
+ "\x1b[38;5;201m",
335
+ "\x1b[38;5;205m",
336
+ "\x1b[38;5;209m",
337
+ "\x1b[38;5;213m",
338
+ "\x1b[38;5;217m",
339
+ "\x1b[38;5;221m",
340
+ "\x1b[38;5;225m",
341
+ "\x1b[38;5;229m",
342
+ ],
343
+ saffron: [
344
+ "\x1b[38;5;208m",
345
+ "\x1b[38;5;214m",
346
+ "\x1b[38;5;220m",
347
+ "\x1b[38;5;226m",
348
+ "\x1b[38;5;190m",
349
+ "\x1b[38;5;184m",
350
+ "\x1b[38;5;178m",
351
+ "\x1b[38;5;172m",
352
+ ],
353
+ neonGlitch: [
354
+ "\x1b[38;5;205m",
355
+ "\x1b[38;5;209m",
356
+ "\x1b[38;5;213m",
357
+ "\x1b[38;5;219m",
358
+ "\x1b[38;5;225m",
359
+ "\x1b[38;5;231m",
360
+ "\x1b[38;5;237m",
361
+ "\x1b[38;5;243m",
362
+ ],
363
+ berry: [
364
+ "\x1b[38;5;161m",
365
+ "\x1b[38;5;165m",
366
+ "\x1b[38;5;169m",
367
+ "\x1b[38;5;173m",
368
+ "\x1b[38;5;177m",
369
+ "\x1b[38;5;181m",
370
+ "\x1b[38;5;185m",
371
+ "\x1b[38;5;189m",
372
+ ],
373
+ cosmic: [
374
+ "\x1b[38;5;18m",
375
+ "\x1b[38;5;21m",
376
+ "\x1b[38;5;57m",
377
+ "\x1b[38;5;93m",
378
+ "\x1b[38;5;129m",
379
+ "\x1b[38;5;165m",
380
+ "\x1b[38;5;201m",
381
+ "\x1b[38;5;207m",
382
+ ],
383
+ sunbeam: [
384
+ "\x1b[38;5;226m",
385
+ "\x1b[38;5;220m",
386
+ "\x1b[38;5;214m",
387
+ "\x1b[38;5;208m",
388
+ "\x1b[38;5;202m",
389
+ "\x1b[38;5;196m",
390
+ "\x1b[38;5;190m",
391
+ "\x1b[38;5;184m",
392
+ ],
393
+ };
394
+ //# sourceMappingURL=banners.js.map
@@ -0,0 +1,3 @@
1
+ export declare const mainBanner = "";
2
+ export declare const banners: string[];
3
+ export declare const colorPalettes: Record<string, string[]>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"banners.js","sourceRoot":"","sources":["../src/banners.ts"],"names":[],"mappings":";AAAA,sCAAsC;;;AAEzB,QAAA,UAAU,GAAG,EAAE,CAAC;AAEhB,QAAA,OAAO,GAAG;IACrB,oBAAoB;IACpB;;;;;;CAMD;IACC,WAAW;IACX;;;;;;CAMD;IACC,iBAAiB;IACjB;;;;;;;CAOD;IACC,iBAAiB;IACjB;;;;;CAKD;IACC,YAAY;IACZ;;;;;CAKD;IACC,aAAa;IACb;;;;CAID;IACC,eAAe;IACf;;;;;;;CAOD;IACC,UAAU;IACV;;;;;;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AChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;KACjB;IACD,MAAM,EAAE;QACN,eAAe;QACf,eAAe;QACf,eAAe;QACf,eAAe;QACf,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;KACjB;IACD,OAAO,EAAE;QACP,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;QAChB,gBAAgB;KACjB;CACF,CAAC"}
@@ -2,45 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = demo;
4
4
  const commander_1 = require("commander");
5
- /**
6
- * @description Demo CLI module for Decaf libraries
7
- * @summary A minimal implementation showing how to extend the Decaf CLI with custom commands.
8
- * This module demonstrates the pattern for creating CLI modules that can be discovered and loaded by the Decaf CLI.
9
- *
10
- * @return {Command} The Command object to be added to the main Decaf CLI
11
- *
12
- * @function demo
13
- * @memberOf module:CLI
14
- *
15
- * @example
16
- * // Run the demo command with an argument
17
- * npx decaf demo command "something something"
18
- *
19
- * // Output:
20
- * // executed demo command with type variable: something something
21
- *
22
- * @mermaid
23
- * sequenceDiagram
24
- * participant User
25
- * participant CLI
26
- * participant DemoModule
27
- * participant Command
28
- *
29
- * User->>CLI: npx decaf demo command "arg"
30
- * CLI->>DemoModule: Load module
31
- * DemoModule->>Command: Create command
32
- * Command->>Command: Configure action
33
- * Command-->>DemoModule: Return command
34
- * DemoModule-->>CLI: Return command
35
- * CLI->>Command: Execute with args
36
- * Command->>Console: Log output
37
- */
5
+ const runCommand = new commander_1.Command("command")
6
+ .description("A demo command")
7
+ .argument("<type>")
8
+ .action(async (type) => {
9
+ console.log(`executed demo command with type variable: ${type}`);
10
+ });
38
11
  function demo() {
39
- return new commander_1.Command()
40
- .command("command <type>")
41
- .description("A demo command")
42
- .action((args) => {
43
- console.log(`executed demo command with type variable: ${args}`);
44
- });
12
+ const demoCommand = new commander_1.Command("demo").description("Demo commands");
13
+ demoCommand.addCommand(runCommand);
14
+ return demoCommand;
45
15
  }
46
16
  //# sourceMappingURL=cli-module.js.map
@@ -1,35 +1,2 @@
1
1
  import { Command } from "commander";
2
- /**
3
- * @description Demo CLI module for Decaf libraries
4
- * @summary A minimal implementation showing how to extend the Decaf CLI with custom commands.
5
- * This module demonstrates the pattern for creating CLI modules that can be discovered and loaded by the Decaf CLI.
6
- *
7
- * @return {Command} The Command object to be added to the main Decaf CLI
8
- *
9
- * @function demo
10
- * @memberOf module:CLI
11
- *
12
- * @example
13
- * // Run the demo command with an argument
14
- * npx decaf demo command "something something"
15
- *
16
- * // Output:
17
- * // executed demo command with type variable: something something
18
- *
19
- * @mermaid
20
- * sequenceDiagram
21
- * participant User
22
- * participant CLI
23
- * participant DemoModule
24
- * participant Command
25
- *
26
- * User->>CLI: npx decaf demo command "arg"
27
- * CLI->>DemoModule: Load module
28
- * DemoModule->>Command: Create command
29
- * Command->>Command: Configure action
30
- * Command-->>DemoModule: Return command
31
- * DemoModule-->>CLI: Return command
32
- * CLI->>Command: Execute with args
33
- * Command->>Console: Log output
34
- */
35
2
  export default function demo(): Command;
@@ -1 +1 @@
1
- {"version":3,"file":"cli-module.js","sourceRoot":"","sources":["../../src/demo/cli-module.ts"],"names":[],"mappings":";;AAmCA,uBAOC;AA1CD,yCAAoC;AAEpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,SAAwB,IAAI;IAC1B,OAAO,IAAI,mBAAO,EAAE;SACjB,OAAO,CAAC,gBAAgB,CAAC;SACzB,WAAW,CAAC,gBAAgB,CAAC;SAC7B,MAAM,CAAC,CAAC,IAAY,EAAE,EAAE;QACvB,OAAO,CAAC,GAAG,CAAC,6CAA6C,IAAI,EAAE,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACP,CAAC"}
1
+ {"version":3,"file":"cli-module.js","sourceRoot":"","sources":["../../src/demo/cli-module.ts"],"names":[],"mappings":";;AASA,uBAIC;AAbD,yCAAoC;AAEpC,MAAM,UAAU,GAAG,IAAI,mBAAO,CAAC,SAAS,CAAC;KACtC,WAAW,CAAC,gBAAgB,CAAC;KAC7B,QAAQ,CAAC,QAAQ,CAAC;KAClB,MAAM,CAAC,KAAK,EAAE,IAAY,EAAE,EAAE;IAC7B,OAAO,CAAC,GAAG,CAAC,6CAA6C,IAAI,EAAE,CAAC,CAAC;AACnE,CAAC,CAAC,CAAC;AAEL,SAAwB,IAAI;IAC1B,MAAM,WAAW,GAAG,IAAI,mBAAO,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IACrE,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;IACnC,OAAO,WAAW,CAAC;AACrB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.DecafCLieEnvironment = exports.DefaultCliEnvironment = void 0;
7
+ const path_1 = __importDefault(require("path"));
8
+ const logging_1 = require("@decaf-ts/logging");
9
+ const cliModuleRoot = process.env.CLI_MODULE_TOOT && process.env.CLI_MODULE_TOOT.length > 0
10
+ ? path_1.default.resolve(process.env.CLI_MODULE_TOOT)
11
+ : process.cwd();
12
+ exports.DefaultCliEnvironment = {
13
+ banner: true,
14
+ cliModuleRoot,
15
+ };
16
+ exports.DecafCLieEnvironment = logging_1.LoggedEnvironment.accumulate(exports.DefaultCliEnvironment);
17
+ //# sourceMappingURL=environment.js.map
@@ -0,0 +1,17 @@
1
+ import { LoggingConfig } from "@decaf-ts/logging";
2
+ export type DecafCliEnvironment = LoggingConfig & {
3
+ banner: boolean;
4
+ cliModuleRoot: string;
5
+ };
6
+ export declare const DefaultCliEnvironment: DecafCliEnvironment;
7
+ export declare const DecafCLieEnvironment: object & LoggingConfig & {
8
+ env: any;
9
+ } & {
10
+ banner: boolean;
11
+ cliModuleRoot: string;
12
+ } & import("typed-object-accumulator").ObjectAccumulator<object & LoggingConfig & {
13
+ env: any;
14
+ } & {
15
+ banner: boolean;
16
+ cliModuleRoot: string;
17
+ }>;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.js","sourceRoot":"","sources":["../src/environment.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,+CAAqE;AAOrE,MAAM,aAAa,GACjB,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC;IACnE,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;IAC3C,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC;AAEP,QAAA,qBAAqB,GAAwB;IACxD,MAAM,EAAE,IAAI;IACZ,aAAa;CACS,CAAC;AAEZ,QAAA,oBAAoB,GAAG,2BAAiB,CAAC,UAAU,CAC9D,6BAAqB,CACtB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Command } from "commander";
2
- import { Logger } from "@decaf-ts/logging";
2
+ import { LoggedClass } from "@decaf-ts/logging";
3
3
  /**
4
4
  * @description Utility class to handle CLI functionality from all Decaf modules
5
5
  * @summary This class provides a wrapper around Commander.js to handle CLI commands from different Decaf modules.
@@ -17,12 +17,16 @@ import { Logger } from "@decaf-ts/logging";
17
17
  *
18
18
  * @class CliWrapper
19
19
  */
20
- export declare class CliWrapper {
20
+ export declare class CliWrapper extends LoggedClass {
21
21
  private basePath;
22
22
  private crawlLevels;
23
23
  private _command?;
24
24
  private modules;
25
25
  private readonly rootPath;
26
+ private moduleSlogans;
27
+ private globalSlogans;
28
+ private bannerAnimation?;
29
+ private static env;
26
30
  constructor(basePath?: string, crawlLevels?: number);
27
31
  /**
28
32
  * @description Retrieves and initializes the Commander Command object
@@ -100,8 +104,20 @@ export declare class CliWrapper {
100
104
  * @private
101
105
  */
102
106
  private crawl;
103
- protected getSlogan(): string;
104
- protected printBanner(logger?: Logger): void;
107
+ private findModuleRoot;
108
+ protected getSlogan(priorityModule?: string): string;
109
+ private otherSlogans;
110
+ private buildBalancedSloganPool;
111
+ private repeatToLength;
112
+ private ensureGlobalSlogans;
113
+ private collectSlogansFromPath;
114
+ private collectSlogansFromScope;
115
+ private extractSloganStrings;
116
+ private isCommandInstance;
117
+ protected printBanner(args?: string[]): () => void;
118
+ private getPriorityModule;
119
+ private stopBannerAnimation;
120
+ private animateBanner;
105
121
  /**
106
122
  * @description Executes the CLI with the provided arguments
107
123
  * @summary Boots the CLI by loading all modules, then parses and executes the command specified in the arguments
@@ -123,4 +139,16 @@ export declare class CliWrapper {
123
139
  * CliWrapper-->>Client: result
124
140
  */
125
141
  run(args?: string[]): Promise<Command>;
142
+ static accumulateEnvironment(obj: object): void;
143
+ static getEnv(): object & import("@decaf-ts/logging").LoggingConfig & {
144
+ env: any;
145
+ } & {
146
+ banner: boolean;
147
+ cliModuleRoot: string;
148
+ } & import("typed-object-accumulator").ObjectAccumulator<object & import("@decaf-ts/logging").LoggingConfig & {
149
+ env: any;
150
+ } & {
151
+ banner: boolean;
152
+ cliModuleRoot: string;
153
+ }>;
126
154
  }