@bomb.sh/tab 0.0.3 → 0.0.4

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 (36) hide show
  1. package/README.md +153 -167
  2. package/dist/bin/cli.d.ts +1 -1
  3. package/dist/bin/cli.js +1190 -324
  4. package/dist/{cac-DEQnX2V4.js → cac-D7fQPv8f.js} +7 -4
  5. package/dist/{src/cac.d.ts → cac.d.ts} +2 -3
  6. package/dist/cac.js +5 -0
  7. package/dist/{src/citty.d.ts → citty.d.ts} +2 -3
  8. package/dist/citty.js +192 -0
  9. package/dist/{src/commander.d.ts → commander.d.ts} +1 -2
  10. package/dist/{commander-gLSiUyHX.js → commander.js} +6 -7
  11. package/dist/{consola.36c0034f-CftISWio.js → consola.36c0034f-DcBvmSjS.js} +20 -26
  12. package/dist/{prompt-BeRRtcd8.js → prompt-Cjrbe4Tk.js} +15 -17
  13. package/dist/{shared-BGWjvggn.js → shared-H1O-vFhE.js} +1 -2
  14. package/dist/shared-NttFmF7I.d.ts +10 -0
  15. package/dist/{t-Zhhzaib1.js → t-BDEAdEmc.js} +17 -17
  16. package/dist/t-_VA0Gr6E.d.ts +67 -0
  17. package/dist/t.d.ts +2 -0
  18. package/dist/{src/t.js → t.js} +1 -1
  19. package/package.json +6 -6
  20. package/README.2.md +0 -108
  21. package/dist/citty-BJEnxM_0.js +0 -525
  22. package/dist/dist-QXQoOtHE.js +0 -487
  23. package/dist/examples/demo.cac.d.ts +0 -1
  24. package/dist/examples/demo.cac.js +0 -63
  25. package/dist/examples/demo.citty.d.ts +0 -1
  26. package/dist/examples/demo.citty.js +0 -173
  27. package/dist/examples/demo.commander.d.ts +0 -1
  28. package/dist/examples/demo.commander.js +0 -3035
  29. package/dist/examples/demo.t.d.ts +0 -1
  30. package/dist/examples/demo.t.js +0 -78
  31. package/dist/shared.d-B8B93rZW.d.ts +0 -11
  32. package/dist/src/cac.js +0 -5
  33. package/dist/src/citty.js +0 -6
  34. package/dist/src/commander.js +0 -5
  35. package/dist/src/t.d.ts +0 -3
  36. package/dist/t.d-keC1Qwmr.d.ts +0 -68
@@ -1,487 +0,0 @@
1
- import { EventEmitter } from "events";
2
-
3
- //#region node_modules/.pnpm/cac@6.7.14/node_modules/cac/dist/index.mjs
4
- function toArr(any) {
5
- return any == null ? [] : Array.isArray(any) ? any : [any];
6
- }
7
- function toVal(out, key, val, opts) {
8
- var x, old = out[key], nxt = !!~opts.string.indexOf(key) ? val == null || val === true ? "" : String(val) : typeof val === "boolean" ? val : !!~opts.boolean.indexOf(key) ? val === "false" ? false : val === "true" || (out._.push((x = +val, x * 0 === 0) ? x : val), !!val) : (x = +val, x * 0 === 0) ? x : val;
9
- out[key] = old == null ? nxt : Array.isArray(old) ? old.concat(nxt) : [old, nxt];
10
- }
11
- function mri2(args, opts) {
12
- args = args || [];
13
- opts = opts || {};
14
- var k, arr, arg, name, val, out = { _: [] };
15
- var i = 0, j = 0, idx = 0, len = args.length;
16
- const alibi = opts.alias !== void 0;
17
- const strict = opts.unknown !== void 0;
18
- const defaults = opts.default !== void 0;
19
- opts.alias = opts.alias || {};
20
- opts.string = toArr(opts.string);
21
- opts.boolean = toArr(opts.boolean);
22
- if (alibi) for (k in opts.alias) {
23
- arr = opts.alias[k] = toArr(opts.alias[k]);
24
- for (i = 0; i < arr.length; i++) (opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);
25
- }
26
- for (i = opts.boolean.length; i-- > 0;) {
27
- arr = opts.alias[opts.boolean[i]] || [];
28
- for (j = arr.length; j-- > 0;) opts.boolean.push(arr[j]);
29
- }
30
- for (i = opts.string.length; i-- > 0;) {
31
- arr = opts.alias[opts.string[i]] || [];
32
- for (j = arr.length; j-- > 0;) opts.string.push(arr[j]);
33
- }
34
- if (defaults) for (k in opts.default) {
35
- name = typeof opts.default[k];
36
- arr = opts.alias[k] = opts.alias[k] || [];
37
- if (opts[name] !== void 0) {
38
- opts[name].push(k);
39
- for (i = 0; i < arr.length; i++) opts[name].push(arr[i]);
40
- }
41
- }
42
- const keys = strict ? Object.keys(opts.alias) : [];
43
- for (i = 0; i < len; i++) {
44
- arg = args[i];
45
- if (arg === "--") {
46
- out._ = out._.concat(args.slice(++i));
47
- break;
48
- }
49
- for (j = 0; j < arg.length; j++) if (arg.charCodeAt(j) !== 45) break;
50
- if (j === 0) out._.push(arg);
51
- else if (arg.substring(j, j + 3) === "no-") {
52
- name = arg.substring(j + 3);
53
- if (strict && !~keys.indexOf(name)) return opts.unknown(arg);
54
- out[name] = false;
55
- } else {
56
- for (idx = j + 1; idx < arg.length; idx++) if (arg.charCodeAt(idx) === 61) break;
57
- name = arg.substring(j, idx);
58
- val = arg.substring(++idx) || i + 1 === len || ("" + args[i + 1]).charCodeAt(0) === 45 || args[++i];
59
- arr = j === 2 ? [name] : name;
60
- for (idx = 0; idx < arr.length; idx++) {
61
- name = arr[idx];
62
- if (strict && !~keys.indexOf(name)) return opts.unknown("-".repeat(j) + name);
63
- toVal(out, name, idx + 1 < arr.length || val, opts);
64
- }
65
- }
66
- }
67
- if (defaults) {
68
- for (k in opts.default) if (out[k] === void 0) out[k] = opts.default[k];
69
- }
70
- if (alibi) for (k in out) {
71
- arr = opts.alias[k] || [];
72
- while (arr.length > 0) out[arr.shift()] = out[k];
73
- }
74
- return out;
75
- }
76
- const removeBrackets = (v) => v.replace(/[<[].+/, "").trim();
77
- const findAllBrackets = (v) => {
78
- const ANGLED_BRACKET_RE_GLOBAL = /<([^>]+)>/g;
79
- const SQUARE_BRACKET_RE_GLOBAL = /\[([^\]]+)\]/g;
80
- const res = [];
81
- const parse = (match) => {
82
- let variadic = false;
83
- let value = match[1];
84
- if (value.startsWith("...")) {
85
- value = value.slice(3);
86
- variadic = true;
87
- }
88
- return {
89
- required: match[0].startsWith("<"),
90
- value,
91
- variadic
92
- };
93
- };
94
- let angledMatch;
95
- while (angledMatch = ANGLED_BRACKET_RE_GLOBAL.exec(v)) res.push(parse(angledMatch));
96
- let squareMatch;
97
- while (squareMatch = SQUARE_BRACKET_RE_GLOBAL.exec(v)) res.push(parse(squareMatch));
98
- return res;
99
- };
100
- const getMriOptions = (options) => {
101
- const result = {
102
- alias: {},
103
- boolean: []
104
- };
105
- for (const [index, option] of options.entries()) {
106
- if (option.names.length > 1) result.alias[option.names[0]] = option.names.slice(1);
107
- if (option.isBoolean) if (option.negated) {
108
- const hasStringTypeOption = options.some((o, i) => {
109
- return i !== index && o.names.some((name) => option.names.includes(name)) && typeof o.required === "boolean";
110
- });
111
- if (!hasStringTypeOption) result.boolean.push(option.names[0]);
112
- } else result.boolean.push(option.names[0]);
113
- }
114
- return result;
115
- };
116
- const findLongest = (arr) => {
117
- return arr.sort((a, b) => {
118
- return a.length > b.length ? -1 : 1;
119
- })[0];
120
- };
121
- const padRight = (str, length) => {
122
- return str.length >= length ? str : `${str}${" ".repeat(length - str.length)}`;
123
- };
124
- const camelcase = (input) => {
125
- return input.replace(/([a-z])-([a-z])/g, (_, p1, p2) => {
126
- return p1 + p2.toUpperCase();
127
- });
128
- };
129
- const setDotProp = (obj, keys, val) => {
130
- let i = 0;
131
- let length = keys.length;
132
- let t = obj;
133
- let x;
134
- for (; i < length; ++i) {
135
- x = t[keys[i]];
136
- t = t[keys[i]] = i === length - 1 ? val : x != null ? x : !!~keys[i + 1].indexOf(".") || !(+keys[i + 1] > -1) ? {} : [];
137
- }
138
- };
139
- const setByType = (obj, transforms) => {
140
- for (const key of Object.keys(transforms)) {
141
- const transform = transforms[key];
142
- if (transform.shouldTransform) {
143
- obj[key] = Array.prototype.concat.call([], obj[key]);
144
- if (typeof transform.transformFunction === "function") obj[key] = obj[key].map(transform.transformFunction);
145
- }
146
- }
147
- };
148
- const getFileName = (input) => {
149
- const m = /([^\\\/]+)$/.exec(input);
150
- return m ? m[1] : "";
151
- };
152
- const camelcaseOptionName = (name) => {
153
- return name.split(".").map((v, i) => {
154
- return i === 0 ? camelcase(v) : v;
155
- }).join(".");
156
- };
157
- var CACError = class extends Error {
158
- constructor(message) {
159
- super(message);
160
- this.name = this.constructor.name;
161
- if (typeof Error.captureStackTrace === "function") Error.captureStackTrace(this, this.constructor);
162
- else this.stack = new Error(message).stack;
163
- }
164
- };
165
- var Option = class {
166
- constructor(rawName, description, config) {
167
- this.rawName = rawName;
168
- this.description = description;
169
- this.config = Object.assign({}, config);
170
- rawName = rawName.replace(/\.\*/g, "");
171
- this.negated = false;
172
- this.names = removeBrackets(rawName).split(",").map((v) => {
173
- let name = v.trim().replace(/^-{1,2}/, "");
174
- if (name.startsWith("no-")) {
175
- this.negated = true;
176
- name = name.replace(/^no-/, "");
177
- }
178
- return camelcaseOptionName(name);
179
- }).sort((a, b) => a.length > b.length ? 1 : -1);
180
- this.name = this.names[this.names.length - 1];
181
- if (this.negated && this.config.default == null) this.config.default = true;
182
- if (rawName.includes("<")) this.required = true;
183
- else if (rawName.includes("[")) this.required = false;
184
- else this.isBoolean = true;
185
- }
186
- };
187
- const processArgs = process.argv;
188
- const platformInfo = `${process.platform}-${process.arch} node-${process.version}`;
189
- var Command = class {
190
- constructor(rawName, description, config = {}, cli) {
191
- this.rawName = rawName;
192
- this.description = description;
193
- this.config = config;
194
- this.cli = cli;
195
- this.options = [];
196
- this.aliasNames = [];
197
- this.name = removeBrackets(rawName);
198
- this.args = findAllBrackets(rawName);
199
- this.examples = [];
200
- }
201
- usage(text) {
202
- this.usageText = text;
203
- return this;
204
- }
205
- allowUnknownOptions() {
206
- this.config.allowUnknownOptions = true;
207
- return this;
208
- }
209
- ignoreOptionDefaultValue() {
210
- this.config.ignoreOptionDefaultValue = true;
211
- return this;
212
- }
213
- version(version, customFlags = "-v, --version") {
214
- this.versionNumber = version;
215
- this.option(customFlags, "Display version number");
216
- return this;
217
- }
218
- example(example) {
219
- this.examples.push(example);
220
- return this;
221
- }
222
- option(rawName, description, config) {
223
- const option = new Option(rawName, description, config);
224
- this.options.push(option);
225
- return this;
226
- }
227
- alias(name) {
228
- this.aliasNames.push(name);
229
- return this;
230
- }
231
- action(callback) {
232
- this.commandAction = callback;
233
- return this;
234
- }
235
- isMatched(name) {
236
- return this.name === name || this.aliasNames.includes(name);
237
- }
238
- get isDefaultCommand() {
239
- return this.name === "" || this.aliasNames.includes("!");
240
- }
241
- get isGlobalCommand() {
242
- return this instanceof GlobalCommand;
243
- }
244
- hasOption(name) {
245
- name = name.split(".")[0];
246
- return this.options.find((option) => {
247
- return option.names.includes(name);
248
- });
249
- }
250
- outputHelp() {
251
- const { name, commands } = this.cli;
252
- const { versionNumber, options: globalOptions, helpCallback } = this.cli.globalCommand;
253
- let sections = [{ body: `${name}${versionNumber ? `/${versionNumber}` : ""}` }];
254
- sections.push({
255
- title: "Usage",
256
- body: ` $ ${name} ${this.usageText || this.rawName}`
257
- });
258
- const showCommands = (this.isGlobalCommand || this.isDefaultCommand) && commands.length > 0;
259
- if (showCommands) {
260
- const longestCommandName = findLongest(commands.map((command) => command.rawName));
261
- sections.push({
262
- title: "Commands",
263
- body: commands.map((command) => {
264
- return ` ${padRight(command.rawName, longestCommandName.length)} ${command.description}`;
265
- }).join("\n")
266
- });
267
- sections.push({
268
- title: `For more info, run any command with the \`--help\` flag`,
269
- body: commands.map((command) => ` $ ${name}${command.name === "" ? "" : ` ${command.name}`} --help`).join("\n")
270
- });
271
- }
272
- let options = this.isGlobalCommand ? globalOptions : [...this.options, ...globalOptions || []];
273
- if (!this.isGlobalCommand && !this.isDefaultCommand) options = options.filter((option) => option.name !== "version");
274
- if (options.length > 0) {
275
- const longestOptionName = findLongest(options.map((option) => option.rawName));
276
- sections.push({
277
- title: "Options",
278
- body: options.map((option) => {
279
- return ` ${padRight(option.rawName, longestOptionName.length)} ${option.description} ${option.config.default === void 0 ? "" : `(default: ${option.config.default})`}`;
280
- }).join("\n")
281
- });
282
- }
283
- if (this.examples.length > 0) sections.push({
284
- title: "Examples",
285
- body: this.examples.map((example) => {
286
- if (typeof example === "function") return example(name);
287
- return example;
288
- }).join("\n")
289
- });
290
- if (helpCallback) sections = helpCallback(sections) || sections;
291
- console.log(sections.map((section) => {
292
- return section.title ? `${section.title}:
293
- ${section.body}` : section.body;
294
- }).join("\n\n"));
295
- }
296
- outputVersion() {
297
- const { name } = this.cli;
298
- const { versionNumber } = this.cli.globalCommand;
299
- if (versionNumber) console.log(`${name}/${versionNumber} ${platformInfo}`);
300
- }
301
- checkRequiredArgs() {
302
- const minimalArgsCount = this.args.filter((arg) => arg.required).length;
303
- if (this.cli.args.length < minimalArgsCount) throw new CACError(`missing required args for command \`${this.rawName}\``);
304
- }
305
- checkUnknownOptions() {
306
- const { options, globalCommand } = this.cli;
307
- if (!this.config.allowUnknownOptions) {
308
- for (const name of Object.keys(options)) if (name !== "--" && !this.hasOption(name) && !globalCommand.hasOption(name)) throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);
309
- }
310
- }
311
- checkOptionValue() {
312
- const { options: parsedOptions, globalCommand } = this.cli;
313
- const options = [...globalCommand.options, ...this.options];
314
- for (const option of options) {
315
- const value = parsedOptions[option.name.split(".")[0]];
316
- if (option.required) {
317
- const hasNegated = options.some((o) => o.negated && o.names.includes(option.name));
318
- if (value === true || value === false && !hasNegated) throw new CACError(`option \`${option.rawName}\` value is missing`);
319
- }
320
- }
321
- }
322
- };
323
- var GlobalCommand = class extends Command {
324
- constructor(cli) {
325
- super("@@global@@", "", {}, cli);
326
- }
327
- };
328
- var __assign = Object.assign;
329
- var CAC = class extends EventEmitter {
330
- constructor(name = "") {
331
- super();
332
- this.name = name;
333
- this.commands = [];
334
- this.rawArgs = [];
335
- this.args = [];
336
- this.options = {};
337
- this.globalCommand = new GlobalCommand(this);
338
- this.globalCommand.usage("<command> [options]");
339
- }
340
- usage(text) {
341
- this.globalCommand.usage(text);
342
- return this;
343
- }
344
- command(rawName, description, config) {
345
- const command = new Command(rawName, description || "", config, this);
346
- command.globalCommand = this.globalCommand;
347
- this.commands.push(command);
348
- return command;
349
- }
350
- option(rawName, description, config) {
351
- this.globalCommand.option(rawName, description, config);
352
- return this;
353
- }
354
- help(callback) {
355
- this.globalCommand.option("-h, --help", "Display this message");
356
- this.globalCommand.helpCallback = callback;
357
- this.showHelpOnExit = true;
358
- return this;
359
- }
360
- version(version, customFlags = "-v, --version") {
361
- this.globalCommand.version(version, customFlags);
362
- this.showVersionOnExit = true;
363
- return this;
364
- }
365
- example(example) {
366
- this.globalCommand.example(example);
367
- return this;
368
- }
369
- outputHelp() {
370
- if (this.matchedCommand) this.matchedCommand.outputHelp();
371
- else this.globalCommand.outputHelp();
372
- }
373
- outputVersion() {
374
- this.globalCommand.outputVersion();
375
- }
376
- setParsedInfo({ args, options }, matchedCommand, matchedCommandName) {
377
- this.args = args;
378
- this.options = options;
379
- if (matchedCommand) this.matchedCommand = matchedCommand;
380
- if (matchedCommandName) this.matchedCommandName = matchedCommandName;
381
- return this;
382
- }
383
- unsetMatchedCommand() {
384
- this.matchedCommand = void 0;
385
- this.matchedCommandName = void 0;
386
- }
387
- parse(argv = processArgs, { run = true } = {}) {
388
- this.rawArgs = argv;
389
- if (!this.name) this.name = argv[1] ? getFileName(argv[1]) : "cli";
390
- let shouldParse = true;
391
- for (const command of this.commands) {
392
- const parsed = this.mri(argv.slice(2), command);
393
- const commandName = parsed.args[0];
394
- if (command.isMatched(commandName)) {
395
- shouldParse = false;
396
- const parsedInfo = __assign(__assign({}, parsed), { args: parsed.args.slice(1) });
397
- this.setParsedInfo(parsedInfo, command, commandName);
398
- this.emit(`command:${commandName}`, command);
399
- }
400
- }
401
- if (shouldParse) {
402
- for (const command of this.commands) if (command.name === "") {
403
- shouldParse = false;
404
- const parsed = this.mri(argv.slice(2), command);
405
- this.setParsedInfo(parsed, command);
406
- this.emit(`command:!`, command);
407
- }
408
- }
409
- if (shouldParse) {
410
- const parsed = this.mri(argv.slice(2));
411
- this.setParsedInfo(parsed);
412
- }
413
- if (this.options.help && this.showHelpOnExit) {
414
- this.outputHelp();
415
- run = false;
416
- this.unsetMatchedCommand();
417
- }
418
- if (this.options.version && this.showVersionOnExit && this.matchedCommandName == null) {
419
- this.outputVersion();
420
- run = false;
421
- this.unsetMatchedCommand();
422
- }
423
- const parsedArgv = {
424
- args: this.args,
425
- options: this.options
426
- };
427
- if (run) this.runMatchedCommand();
428
- if (!this.matchedCommand && this.args[0]) this.emit("command:*");
429
- return parsedArgv;
430
- }
431
- mri(argv, command) {
432
- const cliOptions = [...this.globalCommand.options, ...command ? command.options : []];
433
- const mriOptions = getMriOptions(cliOptions);
434
- let argsAfterDoubleDashes = [];
435
- const doubleDashesIndex = argv.indexOf("--");
436
- if (doubleDashesIndex > -1) {
437
- argsAfterDoubleDashes = argv.slice(doubleDashesIndex + 1);
438
- argv = argv.slice(0, doubleDashesIndex);
439
- }
440
- let parsed = mri2(argv, mriOptions);
441
- parsed = Object.keys(parsed).reduce((res, name) => {
442
- return __assign(__assign({}, res), { [camelcaseOptionName(name)]: parsed[name] });
443
- }, { _: [] });
444
- const args = parsed._;
445
- const options = { "--": argsAfterDoubleDashes };
446
- const ignoreDefault = command && command.config.ignoreOptionDefaultValue ? command.config.ignoreOptionDefaultValue : this.globalCommand.config.ignoreOptionDefaultValue;
447
- let transforms = Object.create(null);
448
- for (const cliOption of cliOptions) {
449
- if (!ignoreDefault && cliOption.config.default !== void 0) for (const name of cliOption.names) options[name] = cliOption.config.default;
450
- if (Array.isArray(cliOption.config.type)) {
451
- if (transforms[cliOption.name] === void 0) {
452
- transforms[cliOption.name] = Object.create(null);
453
- transforms[cliOption.name]["shouldTransform"] = true;
454
- transforms[cliOption.name]["transformFunction"] = cliOption.config.type[0];
455
- }
456
- }
457
- }
458
- for (const key of Object.keys(parsed)) if (key !== "_") {
459
- const keys = key.split(".");
460
- setDotProp(options, keys, parsed[key]);
461
- setByType(options, transforms);
462
- }
463
- return {
464
- args,
465
- options
466
- };
467
- }
468
- runMatchedCommand() {
469
- const { args, options, matchedCommand: command } = this;
470
- if (!command || !command.commandAction) return;
471
- command.checkUnknownOptions();
472
- command.checkOptionValue();
473
- command.checkRequiredArgs();
474
- const actionArgs = [];
475
- command.args.forEach((arg, index) => {
476
- if (arg.variadic) actionArgs.push(args.slice(index));
477
- else actionArgs.push(args[index]);
478
- });
479
- actionArgs.push(options);
480
- return command.commandAction.apply(this, actionArgs);
481
- }
482
- };
483
- const cac = (name = "") => new CAC(name);
484
- var dist_default = cac;
485
-
486
- //#endregion
487
- export { dist_default };
@@ -1 +0,0 @@
1
- export { };
@@ -1,63 +0,0 @@
1
- import { dist_default } from "../dist-QXQoOtHE.js";
2
- import "../t-Zhhzaib1.js";
3
- import "../shared-BGWjvggn.js";
4
- import { tab } from "../cac-DEQnX2V4.js";
5
-
6
- //#region examples/demo.cac.ts
7
- const cli = dist_default("vite");
8
- cli.option("-c, --config <file>", `Use specified config file`).option("-m, --mode <mode>", `Set env mode`).option("-l, --logLevel <level>", `info | warn | error | silent`);
9
- cli.command("dev", "Start dev server").option("-H, --host [host]", `Specify hostname`).option("-p, --port <port>", `Specify port`).option("-v, --verbose", `Enable verbose logging`).option("--quiet", `Suppress output`).action((options) => {});
10
- cli.command("serve", "Start the server").option("-H, --host [host]", `Specify hostname`).option("-p, --port <port>", `Specify port`).action((options) => {});
11
- cli.command("dev build", "Build project").action((options) => {});
12
- cli.command("dev start", "Start development server").action((options) => {});
13
- cli.command("copy <source> <destination>", "Copy files").action((source, destination, options) => {});
14
- cli.command("lint [...files]", "Lint project").action((files, options) => {});
15
- await tab(cli, {
16
- subCommands: {
17
- copy: { args: {
18
- source: function(complete) {
19
- complete("src/", "Source directory");
20
- complete("dist/", "Distribution directory");
21
- complete("public/", "Public assets");
22
- },
23
- destination: function(complete) {
24
- complete("build/", "Build output");
25
- complete("release/", "Release directory");
26
- complete("backup/", "Backup location");
27
- }
28
- } },
29
- lint: { args: { files: function(complete) {
30
- complete("main.ts", "Main file");
31
- complete("index.ts", "Index file");
32
- } } },
33
- dev: { options: {
34
- port: function(complete, options) {
35
- complete("3000", "Development server port");
36
- complete("8080", "Alternative port");
37
- },
38
- host: function(complete, options) {
39
- complete("localhost", "Localhost");
40
- complete("0.0.0.0", "All interfaces");
41
- }
42
- } }
43
- },
44
- options: {
45
- config: function(complete, options) {
46
- complete("vite.config.ts", "Vite config file");
47
- complete("vite.config.js", "Vite config file");
48
- },
49
- mode: function(complete, options) {
50
- complete("development", "Development mode");
51
- complete("production", "Production mode");
52
- },
53
- logLevel: function(complete, options) {
54
- complete("info", "Info level");
55
- complete("warn", "Warn level");
56
- complete("error", "Error level");
57
- complete("silent", "Silent level");
58
- }
59
- }
60
- });
61
- cli.parse();
62
-
63
- //#endregion
@@ -1 +0,0 @@
1
- export { };