@noravel/command 1.0.0

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 (82) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +569 -0
  3. package/dist/Command.d.ts +27 -0
  4. package/dist/Command.js +86 -0
  5. package/dist/Contracts/Command.d.ts +10 -0
  6. package/dist/Contracts/Command.js +2 -0
  7. package/dist/Contracts/CommandDefinition.d.ts +7 -0
  8. package/dist/Contracts/CommandDefinition.js +2 -0
  9. package/dist/Contracts/InputArgument.d.ts +12 -0
  10. package/dist/Contracts/InputArgument.js +9 -0
  11. package/dist/Contracts/InputOption.d.ts +15 -0
  12. package/dist/Contracts/InputOption.js +10 -0
  13. package/dist/Detector.d.ts +4 -0
  14. package/dist/Detector.js +73 -0
  15. package/dist/Executor.d.ts +4 -0
  16. package/dist/Executor.js +9 -0
  17. package/dist/Inputs/InputArgument.d.ts +13 -0
  18. package/dist/Inputs/InputArgument.js +39 -0
  19. package/dist/Inputs/InputDefinition.d.ts +11 -0
  20. package/dist/Inputs/InputDefinition.js +25 -0
  21. package/dist/Inputs/InputOption.d.ts +18 -0
  22. package/dist/Inputs/InputOption.js +84 -0
  23. package/dist/Inputs/Prompt.d.ts +5 -0
  24. package/dist/Inputs/Prompt.js +178 -0
  25. package/dist/Kernel.d.ts +15 -0
  26. package/dist/Kernel.js +88 -0
  27. package/dist/MakerCommand.d.ts +27 -0
  28. package/dist/MakerCommand.js +68 -0
  29. package/dist/Outputs/Helper.d.ts +7 -0
  30. package/dist/Outputs/Helper.js +61 -0
  31. package/dist/Outputs/OutputColor.d.ts +18 -0
  32. package/dist/Outputs/OutputColor.js +53 -0
  33. package/dist/Outputs/OutputMessage.d.ts +11 -0
  34. package/dist/Outputs/OutputMessage.js +70 -0
  35. package/dist/Outputs/ProgressBar/ProgressBar.d.ts +22 -0
  36. package/dist/Outputs/ProgressBar/ProgressBar.js +98 -0
  37. package/dist/Outputs/ProgressBar/StatusBar.d.ts +11 -0
  38. package/dist/Outputs/ProgressBar/StatusBar.js +10 -0
  39. package/dist/Outputs/ProgressBar/StatusBarFactory.d.ts +5 -0
  40. package/dist/Outputs/ProgressBar/StatusBarFactory.js +20 -0
  41. package/dist/Outputs/ProgressBar/StatusBarNormal.d.ts +6 -0
  42. package/dist/Outputs/ProgressBar/StatusBarNormal.js +19 -0
  43. package/dist/Outputs/ProgressBar/StatusBarVerbose.d.ts +6 -0
  44. package/dist/Outputs/ProgressBar/StatusBarVerbose.js +20 -0
  45. package/dist/Outputs/ProgressBar.d.ts +22 -0
  46. package/dist/Outputs/ProgressBar.js +123 -0
  47. package/dist/Parser.d.ts +9 -0
  48. package/dist/Parser.js +79 -0
  49. package/dist/index.d.ts +5 -0
  50. package/dist/index.js +14 -0
  51. package/dist/src/Command.d.ts +23 -0
  52. package/dist/src/Command.js +61 -0
  53. package/dist/src/Contracts/Command.d.ts +9 -0
  54. package/dist/src/Contracts/Command.js +2 -0
  55. package/dist/src/Contracts/InputArgument.d.ts +11 -0
  56. package/dist/src/Contracts/InputArgument.js +9 -0
  57. package/dist/src/Contracts/InputOption.d.ts +12 -0
  58. package/dist/src/Contracts/InputOption.js +10 -0
  59. package/dist/src/Detector.d.ts +4 -0
  60. package/dist/src/Detector.js +50 -0
  61. package/dist/src/Inputs/InputArgument.d.ts +12 -0
  62. package/dist/src/Inputs/InputArgument.js +36 -0
  63. package/dist/src/Inputs/InputDefinition.d.ts +11 -0
  64. package/dist/src/Inputs/InputDefinition.js +25 -0
  65. package/dist/src/Inputs/InputOption.d.ts +18 -0
  66. package/dist/src/Inputs/InputOption.js +84 -0
  67. package/dist/src/Kernel.d.ts +15 -0
  68. package/dist/src/Kernel.js +87 -0
  69. package/dist/src/MakerCommand.d.ts +27 -0
  70. package/dist/src/MakerCommand.js +68 -0
  71. package/dist/src/Outputs/Helper.d.ts +7 -0
  72. package/dist/src/Outputs/Helper.js +61 -0
  73. package/dist/src/Outputs/OutputColor.d.ts +18 -0
  74. package/dist/src/Outputs/OutputColor.js +53 -0
  75. package/dist/src/Outputs/OutputMessage.d.ts +11 -0
  76. package/dist/src/Outputs/OutputMessage.js +144 -0
  77. package/dist/src/Parser.d.ts +9 -0
  78. package/dist/src/Parser.js +79 -0
  79. package/dist/src/index.d.ts +4 -0
  80. package/dist/src/index.js +12 -0
  81. package/dist/tsconfig.tsbuildinfo +1 -0
  82. package/package.json +35 -0
@@ -0,0 +1,68 @@
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
+ const path_1 = __importDefault(require("path"));
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const Command_1 = __importDefault(require("./Command"));
9
+ class MakerCommand extends Command_1.default {
10
+ basePath(dirPath) {
11
+ const basePath = process.cwd();
12
+ if (!dirPath) {
13
+ return basePath;
14
+ }
15
+ dirPath = path_1.default.join(basePath, dirPath);
16
+ if (!fs_1.default.existsSync(dirPath)) {
17
+ fs_1.default.mkdirSync(dirPath, { recursive: true });
18
+ }
19
+ return dirPath;
20
+ }
21
+ async fileName(question = 'What should the file be named?') {
22
+ let name = this.getArgument('name');
23
+ if (!name) {
24
+ name = await this.output.ask(question);
25
+ }
26
+ return name;
27
+ }
28
+ makeFile(fileName, dirPath) {
29
+ const filePath = path_1.default.join(this.basePath(dirPath), `${fileName}.js`);
30
+ if (fs_1.default.existsSync(filePath) && !this.getOption('force')) {
31
+ this.output.error(this.fileAlreadyExists(filePath));
32
+ return;
33
+ }
34
+ fs_1.default.mkdirSync(path_1.default.dirname(filePath), { recursive: true });
35
+ fs_1.default.writeFileSync(filePath, this.contentFile(fileName), 'utf8');
36
+ this.output.success(this.fileCreatedSuccessfully(filePath));
37
+ }
38
+ /**
39
+ * Get the message that the file already exists.
40
+ *
41
+ * @returns {string}
42
+ */
43
+ fileAlreadyExists(filePath) {
44
+ return `File [${filePath}] already exists.`;
45
+ }
46
+ /**
47
+ * Get the message that the file created successfully.
48
+ *
49
+ * @param {string} filePath
50
+ * @returns {string}
51
+ */
52
+ fileCreatedSuccessfully(filePath) {
53
+ return `File [${filePath}] created successfully.`;
54
+ }
55
+ /**
56
+ * Get the content of the file.
57
+ *
58
+ * @param {string} fileName
59
+ * @returns {string}
60
+ */
61
+ contentFile(fileName) {
62
+ return '';
63
+ }
64
+ async handle() {
65
+ //
66
+ }
67
+ }
68
+ exports.default = MakerCommand;
@@ -0,0 +1,7 @@
1
+ import Command from '../Contracts/Command';
2
+ import InputDefinition from '../Inputs/InputDefinition';
3
+ export default class Helper {
4
+ showHelp(name: string, description: string, definition: InputDefinition): void;
5
+ showHelpForMain(commands: Command[]): void;
6
+ showExplanation(command: string, explanation: string): string;
7
+ }
@@ -0,0 +1,61 @@
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
+ const OutputColor_1 = __importDefault(require("./OutputColor"));
7
+ const MAX_LENGTH = 25;
8
+ class Helper {
9
+ showHelp(name, description, definition) {
10
+ console.log(OutputColor_1.default.yellow('Description:'));
11
+ console.log(` ${description}`);
12
+ console.log('');
13
+ const argumentDefinition = definition.getArguments();
14
+ console.log(OutputColor_1.default.yellow('Usage:'));
15
+ console.log(` ${name} [options] [--] ${argumentDefinition.map((argument) => `<${argument.getName()}>`).join(' ')}`);
16
+ console.log('');
17
+ if (argumentDefinition.length) {
18
+ console.log(OutputColor_1.default.yellow('Arguments:'));
19
+ argumentDefinition.forEach((argument) => {
20
+ console.log(OutputColor_1.default.green(` ${argument.getName()} `) +
21
+ `${' '.repeat(MAX_LENGTH - argument.getName().length - 2)}${argument.getDescription()}`);
22
+ });
23
+ console.log('');
24
+ }
25
+ const optionDefinition = definition.getOptions();
26
+ if (optionDefinition.length) {
27
+ console.log(OutputColor_1.default.yellow('Options:'));
28
+ optionDefinition.forEach((option) => {
29
+ let shortcut = option.getShortcut();
30
+ if (Array.isArray(shortcut)) {
31
+ shortcut = shortcut.map((item) => `-${item}`).join(', ') + ',';
32
+ }
33
+ else if (shortcut) {
34
+ shortcut = `-${shortcut},`;
35
+ }
36
+ else {
37
+ shortcut = ' ';
38
+ }
39
+ console.log(OutputColor_1.default.green(this.showExplanation(`${shortcut} --${option.getName()}`, option.getDescription())));
40
+ });
41
+ console.log('');
42
+ }
43
+ }
44
+ showHelpForMain(commands) {
45
+ console.log(OutputColor_1.default.yellow('Usage:'));
46
+ console.log(OutputColor_1.default.green(' command [arguments] [--options]'));
47
+ console.log('');
48
+ console.log(OutputColor_1.default.yellow('Available commands:'));
49
+ commands.forEach((command) => {
50
+ console.log(OutputColor_1.default.green(this.showExplanation(command.getName(), command.getDescription())));
51
+ });
52
+ console.log('');
53
+ console.log(OutputColor_1.default.yellow('Options:'));
54
+ console.log(OutputColor_1.default.green(this.showExplanation('-h, --help', 'Show this help message')));
55
+ console.log(OutputColor_1.default.green(this.showExplanation('-v, --version', 'Display the version of Noravel Command')));
56
+ }
57
+ showExplanation(command, explanation) {
58
+ return ` ${command}${' '.repeat(MAX_LENGTH - command.length - 2)}${explanation}`;
59
+ }
60
+ }
61
+ exports.default = Helper;
@@ -0,0 +1,18 @@
1
+ export default class OutputColor {
2
+ static black(message: string): string;
3
+ static red(message: string): string;
4
+ static green(message: string): string;
5
+ static yellow(message: string): string;
6
+ static blue(message: string): string;
7
+ static magenta(message: string): string;
8
+ static cyan(message: string): string;
9
+ static white(message: string): string;
10
+ static bgBlack(message: string): string;
11
+ static bgRed(message: string): string;
12
+ static bgGreen(message: string): string;
13
+ static bgYellow(message: string): string;
14
+ static bgBlue(message: string): string;
15
+ static bgMagenta(message: string): string;
16
+ static bgCyan(message: string): string;
17
+ static bgWhite(message: string): string;
18
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class OutputColor {
4
+ static black(message) {
5
+ return `\x1b[30m${message}\x1b[0m`;
6
+ }
7
+ static red(message) {
8
+ return `\x1b[31m${message}\x1b[0m`;
9
+ }
10
+ static green(message) {
11
+ return `\x1b[32m${message}\x1b[0m`;
12
+ }
13
+ static yellow(message) {
14
+ return `\x1b[33m${message}\x1b[0m`;
15
+ }
16
+ static blue(message) {
17
+ return `\x1b[34m${message}\x1b[0m`;
18
+ }
19
+ static magenta(message) {
20
+ return `\x1b[35m${message}\x1b[0m`;
21
+ }
22
+ static cyan(message) {
23
+ return `\x1b[36m${message}\x1b[0m`;
24
+ }
25
+ static white(message) {
26
+ return `\x1b[37m${message}\x1b[0m`;
27
+ }
28
+ static bgBlack(message) {
29
+ return `\x1b[40m${message}\x1b[0m`;
30
+ }
31
+ static bgRed(message) {
32
+ return `\x1b[41m${message}\x1b[0m`;
33
+ }
34
+ static bgGreen(message) {
35
+ return `\x1b[42m${message}\x1b[0m`;
36
+ }
37
+ static bgYellow(message) {
38
+ return `\x1b[43m${message}\x1b[0m`;
39
+ }
40
+ static bgBlue(message) {
41
+ return `\x1b[44m${message}\x1b[0m`;
42
+ }
43
+ static bgMagenta(message) {
44
+ return `\x1b[45m${message}\x1b[0m`;
45
+ }
46
+ static bgCyan(message) {
47
+ return `\x1b[46m${message}\x1b[0m`;
48
+ }
49
+ static bgWhite(message) {
50
+ return `\x1b[47m${message}\x1b[0m`;
51
+ }
52
+ }
53
+ exports.default = OutputColor;
@@ -0,0 +1,11 @@
1
+ export default class OutputMessage {
2
+ info(message: string): void;
3
+ error(message: string): void;
4
+ warning(message: string): void;
5
+ success(message: string): void;
6
+ comment(message: string): void;
7
+ ask(message: string): Promise<string>;
8
+ secret(message: string): Promise<string>;
9
+ line(message: string, type?: 'line' | 'info' | 'error' | 'warning' | 'success' | 'comment'): void;
10
+ table(heading: string[], rows: (string[])[]): void;
11
+ }
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ var __importDefault = (this && this.__importDefault) || function (mod) {
36
+ return (mod && mod.__esModule) ? mod : { "default": mod };
37
+ };
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ const readline = __importStar(require("node:readline"));
40
+ const OutputColor_1 = __importDefault(require("./OutputColor"));
41
+ class OutputMessage {
42
+ info(message) {
43
+ this.line(message, 'info');
44
+ }
45
+ error(message) {
46
+ this.line(message, 'error');
47
+ }
48
+ warning(message) {
49
+ this.line(message, 'warning');
50
+ }
51
+ success(message) {
52
+ this.line(message, 'success');
53
+ }
54
+ comment(message) {
55
+ this.line(message, 'comment');
56
+ }
57
+ async ask(message) {
58
+ return new Promise(resolve => {
59
+ const rl = readline.createInterface({
60
+ input: process.stdin,
61
+ output: process.stdout,
62
+ });
63
+ rl.question(message + '\n', answer => {
64
+ rl.close();
65
+ resolve(answer);
66
+ });
67
+ });
68
+ }
69
+ async secret(message) {
70
+ const stdin = process.stdin;
71
+ if (!stdin.isTTY || typeof stdin.setRawMode !== "function") {
72
+ return this.ask(message);
73
+ }
74
+ return new Promise((resolve, reject) => {
75
+ process.stdout.write(message + '\n');
76
+ stdin.setRawMode(true);
77
+ stdin.resume();
78
+ stdin.setEncoding('utf8');
79
+ let password = '';
80
+ const onData = (key) => {
81
+ if (key === '\r' || key === '\n') { // Enter
82
+ stdin.setRawMode(false);
83
+ stdin.pause();
84
+ stdin.removeListener('data', onData);
85
+ process.stdout.write('\n');
86
+ resolve(password);
87
+ }
88
+ else if (key === '\u0003') { // Ctrl+C
89
+ process.exit();
90
+ }
91
+ else if (key === '\u007f') { // Backspace
92
+ password = password.slice(0, -1);
93
+ }
94
+ else {
95
+ password += key;
96
+ }
97
+ };
98
+ stdin.on('data', onData);
99
+ });
100
+ }
101
+ line(message, type = 'line') {
102
+ console.log({
103
+ line: (message) => message,
104
+ info: OutputColor_1.default.cyan,
105
+ error: OutputColor_1.default.red,
106
+ warning: OutputColor_1.default.yellow,
107
+ success: OutputColor_1.default.green,
108
+ comment: OutputColor_1.default.white,
109
+ }[type](message));
110
+ }
111
+ table(heading, rows) {
112
+ const terminalWidth = process.stdout.columns;
113
+ const widthColumns = heading.map(h => h.length + 3);
114
+ for (const row of rows) {
115
+ for (let i = 0; i < row.length; i++) {
116
+ if (row[i].length + 3 > widthColumns[i]) {
117
+ widthColumns[i] = row[i].length + 3;
118
+ }
119
+ }
120
+ }
121
+ let totalWidthColumns = widthColumns.reduce((total, width) => total + width, 1);
122
+ if (terminalWidth < totalWidthColumns) {
123
+ totalWidthColumns = terminalWidth;
124
+ }
125
+ let line = '+';
126
+ let th = '|';
127
+ for (let i = 0; i < heading.length; i++) {
128
+ line += '-'.repeat(widthColumns[i] - 1) + '+';
129
+ th += ' ' + OutputColor_1.default.green(`${heading[i]}`.padEnd(widthColumns[i] - 3)) + ' |';
130
+ }
131
+ console.log(line);
132
+ console.log(th);
133
+ console.log(line);
134
+ for (const row of rows) {
135
+ let tr = '|';
136
+ for (let i = 0; i < row.length; i++) {
137
+ tr += ' ' + `${row[i]}`.padEnd(widthColumns[i] - 3) + ' |';
138
+ }
139
+ console.log(tr);
140
+ }
141
+ console.log(line);
142
+ }
143
+ }
144
+ exports.default = OutputMessage;
@@ -0,0 +1,9 @@
1
+ import InputArgument from './Inputs/InputArgument';
2
+ import InputOption from './Inputs/InputOption';
3
+ export default class Parser {
4
+ static parse(expression: string): [string, InputArgument[], InputOption[]];
5
+ protected static name(expression: string): string;
6
+ protected static parseArgument(token: string): InputArgument;
7
+ protected static parseOption(token: string): InputOption;
8
+ protected static extractDescription(token: string): [string, string];
9
+ }
@@ -0,0 +1,79 @@
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
+ const InputArgument_1 = __importDefault(require("./Inputs/InputArgument"));
7
+ const InputOption_1 = __importDefault(require("./Inputs/InputOption"));
8
+ const InputArgument_2 = require("./Contracts/InputArgument");
9
+ const InputOption_2 = require("./Contracts/InputOption");
10
+ class Parser {
11
+ static parse(expression) {
12
+ const name = Parser.name(expression);
13
+ const _options = [];
14
+ const _arguments = [];
15
+ [...expression.matchAll(/\{\s*(.*?)\s*\}/g)].forEach(match => {
16
+ const optionMatch = match[1].match(/^-{2,}(.*)/);
17
+ if (optionMatch) {
18
+ _options.push(Parser.parseOption(optionMatch[1]));
19
+ }
20
+ else {
21
+ _arguments.push(Parser.parseArgument(match[1]));
22
+ }
23
+ });
24
+ return [name, _arguments, _options];
25
+ }
26
+ static name(expression) {
27
+ if (!/[^\s]+/.test(expression)) {
28
+ throw new Error('Unable to determine command name from signature');
29
+ }
30
+ return /[^\s]+/.exec(expression)?.[0] ?? '';
31
+ }
32
+ static parseArgument(token) {
33
+ const [name, description] = Parser.extractDescription(token);
34
+ switch (true) {
35
+ case name.endsWith('?*'):
36
+ return new InputArgument_1.default(name.replace(/\?\*$/, ''), InputArgument_2.ARGUMENT_MODE.IS_ARRAY, description);
37
+ case name.endsWith('*'):
38
+ return new InputArgument_1.default(name.replace(/\*$/, ''), InputArgument_2.ARGUMENT_MODE.IS_ARRAY | InputArgument_2.ARGUMENT_MODE.REQUIRED, description);
39
+ case name.endsWith('?'):
40
+ return new InputArgument_1.default(name.replace(/\?$/, ''), InputArgument_2.ARGUMENT_MODE.OPTIONAL, description);
41
+ case /(.+)\=\*(.+)/.test(name):
42
+ let match = /(.+)\=\*(.+)/.exec(name) ?? ['', '', ''];
43
+ return new InputArgument_1.default(match[1], InputArgument_2.ARGUMENT_MODE.IS_ARRAY, description, match[2].split(/,\s?/));
44
+ case /(.+)\=(.+)/.test(name):
45
+ let match2 = /(.+)\=(.+)/.exec(name) ?? ['', '', ''];
46
+ return new InputArgument_1.default(match2[1], InputArgument_2.ARGUMENT_MODE.OPTIONAL, description, match2[2]);
47
+ default:
48
+ return new InputArgument_1.default(name, InputArgument_2.ARGUMENT_MODE.REQUIRED, description);
49
+ }
50
+ }
51
+ static parseOption(token) {
52
+ let [name, description] = Parser.extractDescription(token);
53
+ const matches = name.split(/\s*\|\s*/);
54
+ let shortcut;
55
+ if (matches.length > 1) {
56
+ shortcut = matches[0];
57
+ name = matches[1];
58
+ }
59
+ switch (true) {
60
+ case name.endsWith('='):
61
+ return new InputOption_1.default(name.replace(/\=$/, ''), shortcut, InputOption_2.OPTION_MODE.OPTIONAL, description);
62
+ case name.endsWith('=*'):
63
+ return new InputOption_1.default(name.replace(/\=\*$/, ''), shortcut, InputOption_2.OPTION_MODE.OPTIONAL | InputOption_2.OPTION_MODE.IS_ARRAY, description);
64
+ case /(.+)\=\*(.+)/.test(name):
65
+ let match = /(.+)\=\*(.+)/.exec(name) ?? ['', '', ''];
66
+ return new InputOption_1.default(match[1], shortcut, InputOption_2.OPTION_MODE.OPTIONAL | InputOption_2.OPTION_MODE.IS_ARRAY, description, match[2].split(/,\s?/));
67
+ case /(.+)\=(.+)/.test(name):
68
+ let match2 = /(.+)\=(.+)/.exec(name) ?? ['', '', ''];
69
+ return new InputOption_1.default(match2[1], shortcut, InputOption_2.OPTION_MODE.OPTIONAL, description, match2[2]);
70
+ default:
71
+ return new InputOption_1.default(name, shortcut, InputOption_2.OPTION_MODE.NONE, description);
72
+ }
73
+ }
74
+ static extractDescription(token) {
75
+ const parts = token.trim().split(/\s+:\s+/);
76
+ return parts.length === 2 ? parts : [token, ''];
77
+ }
78
+ }
79
+ exports.default = Parser;
@@ -0,0 +1,4 @@
1
+ import Command from './Command';
2
+ import Kernel from './Kernel';
3
+ import MakerCommand from './MakerCommand';
4
+ export { Command, Kernel, MakerCommand };
@@ -0,0 +1,12 @@
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.MakerCommand = exports.Kernel = exports.Command = void 0;
7
+ const Command_1 = __importDefault(require("./Command"));
8
+ exports.Command = Command_1.default;
9
+ const Kernel_1 = __importDefault(require("./Kernel"));
10
+ exports.Kernel = Kernel_1.default;
11
+ const MakerCommand_1 = __importDefault(require("./MakerCommand"));
12
+ exports.MakerCommand = MakerCommand_1.default;
@@ -0,0 +1 @@
1
+ {"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/typescript/lib/lib.es2025.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/typescript/lib/lib.es2025.collection.d.ts","../node_modules/typescript/lib/lib.es2025.float16.d.ts","../node_modules/typescript/lib/lib.es2025.intl.d.ts","../node_modules/typescript/lib/lib.es2025.iterator.d.ts","../node_modules/typescript/lib/lib.es2025.promise.d.ts","../node_modules/typescript/lib/lib.es2025.regexp.d.ts","../node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.date.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.error.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../node_modules/typescript/lib/lib.esnext.temporal.d.ts","../node_modules/typescript/lib/lib.esnext.typedarrays.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.esnext.full.d.ts","../src/contracts/inputargument.ts","../src/inputs/inputargument.ts","../src/contracts/inputoption.ts","../src/inputs/inputoption.ts","../src/parser.ts","../src/inputs/inputdefinition.ts","../src/detector.ts","../src/contracts/command.ts","../src/outputs/outputcolor.ts","../src/outputs/outputmessage.ts","../src/outputs/helper.ts","../src/command.ts","../node_modules/didyoumean2/dist/index.d.ts","../src/kernel.ts","../src/makercommand.ts","../src/index.ts"],"fileIdsList":[[98,99,100,101,103,104],[94,97,99],[105,107,108],[94],[95,97],[96],[101,102,103,104,106],[105],[95,97,99,101,102],[102],[94,95,96,97]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"1e9332c23e9a907175e0ffc6a49e236f97b48838cc8aec9ce7e4cec21e544b65","impliedFormat":1},{"version":"3753fbc1113dc511214802a2342280a8b284ab9094f6420e7aa171e868679f91","impliedFormat":1},{"version":"999ca32883495a866aa5737fe1babc764a469e4cde6ee6b136a4b9ae68853e4b","impliedFormat":1},{"version":"17f13ecb98cbc39243f2eee1f16d45cd8ec4706b03ee314f1915f1a8b42f6984","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"0bd714129fca875f7d4c477a1a392200b0bcd13fb2e80928cd334b63830ea047","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2c9037ae6cd2c52d80ceef0b3c5ffdb488627d71529cf4f63776daf11161c9a","affectsGlobalScope":true,"impliedFormat":1},{"version":"135d5cf4d345f59f1a9caadfafcd858d3d9cc68290db616cc85797224448cccc","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc238c3f81c2984751932b6aab223cd5b830e0ac6cad76389e5e9d2ffc03287d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a07f9b76d361f572620927e5735b77d6d2101c23cdd94383eb5b706e7b36357","affectsGlobalScope":true,"impliedFormat":1},{"version":"7c4e8dc6ab834cc6baa0227e030606d29e3e8449a9f67cdf5605ea5493c4db29","affectsGlobalScope":true,"impliedFormat":1},{"version":"de7ba0fd02e06cd9a5bd4ab441ed0e122735786e67dde1e849cced1cd8b46b78","affectsGlobalScope":true,"impliedFormat":1},{"version":"6148e4e88d720a06855071c3db02069434142a8332cf9c182cda551adedf3156","affectsGlobalScope":true,"impliedFormat":1},{"version":"d63dba625b108316a40c95a4425f8d4294e0deeccfd6c7e59d819efa19e23409","affectsGlobalScope":true,"impliedFormat":1},{"version":"0568d6befee03dd435bed4fc25c4e46865b24bdcb8c563fdc21f580a2c301904","affectsGlobalScope":true,"impliedFormat":1},{"version":"30d62269b05b584741f19a5369852d5d34895aa2ac4fd948956f886d15f9cc0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f128dae7c44d8f35ee42e0a437000a57c9f06cc04f8b4fb42eebf44954d53dc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"ffbe6d7b295306b2ba88030f65b74c107d8d99bdcf596ea99c62a02f606108b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"996fb27b15277369c68a4ba46ed138b4e9e839a02fb4ec756f7997629242fd9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"79b712591b270d4778c89706ca2cfc56ddb8c3f895840e477388f1710dc5eda9","affectsGlobalScope":true,"impliedFormat":1},{"version":"20884846cef428b992b9bd032e70a4ef88e349263f63aeddf04dda837a7dba26","affectsGlobalScope":true,"impliedFormat":1},{"version":"5fcab789c73a97cd43828ee3cc94a61264cf24d4c44472ce64ced0e0f148bdb2","affectsGlobalScope":true,"impliedFormat":1},{"version":"db59a81f070c1880ad645b2c0275022baa6a0c4f0acdc58d29d349c6efcf0903","affectsGlobalScope":true,"impliedFormat":1},{"version":"673294292640f5722b700e7d814e17aaf7d93f83a48a2c9b38f33cbc940ad8b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"d786b48f934cbca483b3c6d0a798cb43bbb4ada283e76fb22c28e53ae05b9e69","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ecb8e347cb6b2a8927c09b86263663289418df375f5e68e11a0ae683776978f","affectsGlobalScope":true,"impliedFormat":1},{"version":"142efd4ce210576f777dc34df121777be89eda476942d6d6663b03dcb53be3ff","affectsGlobalScope":true,"impliedFormat":1},{"version":"379bc41580c2d774f82e828c70308f24a005b490c25ba34d679d84bcf05c3d9d","affectsGlobalScope":true,"impliedFormat":1},{"version":"ed484fb2aa8a1a23d0277056ec3336e0a0b52f9b8d6a961f338a642faf43235d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ffedae1d1c2d53fdbca1c96d3c7dda544281f7d262f99b6880634f8fd8d9820","affectsGlobalScope":true,"impliedFormat":1},{"version":"83a730b125d477dd264df8ba479afab27a3dae7152b005c214ab94dc7ee44fd3","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"ef4a897cd2a3f91000c10264e400b3667c7e51e1b7365f03b62e8081dc53bde6","impliedFormat":1},{"version":"476e29c8f0975c634febcb4d38480cb2f4d529ed98fa1e45e1257642856764b9","signature":"e0041a396c4f5240b863c86f20cf73e6d0c4eaeb4a5cd7adf05027aa86c641f1"},{"version":"d3966a9e945a5a2bf64606eaa67a63ad4733242e489fdd0d93968d1ae198efa5","signature":"df32b7e3cc3c62f980e41b1cd772064bc7e68605eac50ac9ddb3a7935017c6f9"},{"version":"d9b8fad783bc94c5cf35da0dacef4eb0b00542024ab2bb45b08c5aeb0d3c178a","signature":"0313628d8042b6886abdbd7d6fb662874a79c669822cedd2f6f3414214b7ead8"},{"version":"6cdb88d3cdf7622509f6f34f9776956c615992c66f44946c3a065a1bddd3659c","signature":"e3b42b259512d0ba98c5ba52c7d916d8570002f1268af87439a7bbb5edee5ebb"},{"version":"2864e5e5632defc8f6a18924e4576802d029909dbb921e4ed06f0d9bbb4bcfae","signature":"cfe22ebb478eecdec3851d678b161f291ea2b82fec8d04d649d6d31fd4804ad0"},{"version":"e817b559c136907c7554c419224d4c5c61932b4f3e8739abd3ed3d69c86878e3","signature":"36d52849e787a8a22eccf2188fe688017041abe28ddaebd194db2ecbfa716d29"},{"version":"196d384aa96104133a5ae68e824f0cb8174f0f870d8d17682a22840ab1eeae0f","signature":"9e772dee5999d441e215bba6318096a3c899ea9b4898b7ea2fbb5da59eba6a60"},{"version":"f8ab5e6fea892a3857814124bc1d7038ddf5efb4bd3f38d4bb0189ab43c9b9eb","signature":"4ba64f0a8edf4933cf78fe8bb1e26e82470ef91752462591d3c85f42d9811784"},{"version":"90c85b589b6fe6419e7b077377240adbe256777a1a55a6bc136801d6f2e24366","signature":"c5192c52ef6c9592a486465974b56286ee11fd80cdc4ef80b9b9202033f05030"},{"version":"efa2c43e94d36b9261a0006dfa7a5e9aac9665b8f932d142c427b7c682a6ca4a","signature":"5e328abec457864b49bca6faaffdaf1de775d3696a5bcc8a16a78465678b1928"},{"version":"3e243d05a89ee658601e68610b259403014cb8caae3fd3fff515dd81a4ed79fe","signature":"399b9b9ab0a35598b6ec414a4bcd29d5575918297dabdef79d44e044d65d2393"},{"version":"7d4ebd8c93f1d47c9195fef520561d1b063cadec16cefa5e5ba0364a6be9cba3","signature":"d3ec8003a5ccfa6a0f3101ef241d6b9bbb9007271887d93f75e64bde58ec782e"},{"version":"a1a8b3dc54f6e16da92f2a228d5aab09658c40aefa6806dbe186dcfd96cf6f47","impliedFormat":99},{"version":"cb98eaba4b280fcc65e689986da968ca124c82eca012f48d3d5a2c2a736528be","signature":"1fef86bf0e5a05570c1713513f68b29dbcc4bf3dc897dd3f2af54a47de1ba4b9"},{"version":"73d2eb77461f5cf09944b2c06bd297e325ff0b2b34d023249588701478d07d01","signature":"2a055443c1f28ef03f18f0a60b30c330ac83c9e41eeaf82eb13f96bdadd2b2a8"},{"version":"a3177a45e89a0ec2e0ae82eb2fcb6756e8c7e88ace81bed524188a6f6b5c560a","signature":"535075997b2ce05d88a656b64dec294e1ebb2f193d24f40b2110e52c09f6e8dd"}],"root":[[94,105],[107,109]],"options":{"allowJs":true,"declaration":true,"esModuleInterop":true,"module":1,"outDir":"./","removeComments":false,"skipLibCheck":true,"strict":true,"target":99},"referencedMap":[[105,1],[100,2],[109,3],[95,4],[99,5],[97,6],[107,7],[108,8],[104,9],[103,10],[98,11]],"semanticDiagnosticsPerFile":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109],"version":"6.0.3"}
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@noravel/command",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/ttpn18121996/noravel-command.git"
8
+ },
9
+ "main": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "test": "jest",
14
+ "test:coverage": "jest --verbose --coverage",
15
+ "postversion": "git push --tags && npm publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\"",
16
+ "prettier:check": "prettier --ignore-path .prettierignore --check '**/*.{js,ts,json,md}'",
17
+ "prettier:fix": "prettier --ignore-path .prettierignore --write '**/*.{js,ts,json,md}'"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "prepare": "npm run build",
23
+ "author": "Trịnh Trần Phương Nam <ttpn18121996@gmail.com>",
24
+ "keywords": [],
25
+ "license": "MIT",
26
+ "devDependencies": {
27
+ "@types/node": "^25.6.0",
28
+ "jest": "^30.3",
29
+ "prettier": "^3.5",
30
+ "typescript": "^6.0"
31
+ },
32
+ "dependencies": {
33
+ "didyoumean2": "^7.0.4"
34
+ }
35
+ }