@h3ravel/console 11.0.7 → 11.1.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.
- package/bin/fire.cjs +2 -0
- package/bin/fire.js +2 -0
- package/dist/Utils-7OrjoB1C.d.cts +22 -0
- package/dist/Utils-B1kpj9-1.cjs +130 -0
- package/dist/Utils-B1kpj9-1.cjs.map +1 -0
- package/dist/Utils-DAJvoXlr.js +86 -0
- package/dist/Utils-DAJvoXlr.js.map +1 -0
- package/dist/Utils-DxnHOGMz.d.ts +22 -0
- package/dist/Utils.cjs +3 -217
- package/dist/Utils.d.cts +2 -0
- package/dist/Utils.d.ts +2 -0
- package/dist/Utils.js +3 -9
- package/dist/index.cjs +885 -933
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +270 -290
- package/dist/index.d.ts +270 -290
- package/dist/index.js +899 -44
- package/dist/index.js.map +1 -0
- package/package.json +35 -23
- package/bin/chunk-6Z5DP356.js +0 -1
- package/bin/lexer-DQCqS3nf-XQPNMZG6.js +0 -4
- package/bin/run.cjs +0 -26
- package/bin/run.js +0 -26
- package/dist/Commands/Command.cjs +0 -104
- package/dist/Commands/Command.js +0 -7
- package/dist/Commands/MakeCommand.cjs +0 -433
- package/dist/Commands/MakeCommand.js +0 -9
- package/dist/Commands/MigrateCommand.cjs +0 -200
- package/dist/Commands/MigrateCommand.js +0 -8
- package/dist/Commands/ServeCommand.cjs +0 -159
- package/dist/Commands/ServeCommand.js +0 -8
- package/dist/Contracts/ICommand.cjs +0 -18
- package/dist/Contracts/ICommand.js +0 -1
- package/dist/IO/app.cjs +0 -946
- package/dist/IO/app.js +0 -17
- package/dist/IO/providers.cjs +0 -930
- package/dist/IO/providers.js +0 -16
- package/dist/Kernel.cjs +0 -890
- package/dist/Kernel.js +0 -14
- package/dist/Musket.cjs +0 -835
- package/dist/Musket.js +0 -13
- package/dist/Providers/ConsoleServiceProvider.cjs +0 -912
- package/dist/Providers/ConsoleServiceProvider.js +0 -15
- package/dist/Signature.cjs +0 -172
- package/dist/Signature.js +0 -7
- package/dist/chunk-23QH5R54.js +0 -27
- package/dist/chunk-2O2AYFAG.js +0 -63
- package/dist/chunk-3ASEWMRX.js +0 -37
- package/dist/chunk-3FVPHQCH.js +0 -151
- package/dist/chunk-3RX6CLNR.js +0 -32
- package/dist/chunk-3VCNSA6P.js +0 -14
- package/dist/chunk-3WHUADTN.js +0 -6
- package/dist/chunk-6OCHCPBP.js +0 -36
- package/dist/chunk-6OIH6FS4.js +0 -32
- package/dist/chunk-7EWRZPTX.js +0 -63
- package/dist/chunk-7PUQ5ZIN.js +0 -6
- package/dist/chunk-A5AONVOH.js +0 -6
- package/dist/chunk-ADIVRUAJ.js +0 -27
- package/dist/chunk-CCEWV2BR.js +0 -39
- package/dist/chunk-CTQ6DUT2.js +0 -8
- package/dist/chunk-DXQTBFGG.js +0 -31
- package/dist/chunk-E4SSLXFT.js +0 -63
- package/dist/chunk-E5XIGIEX.js +0 -14
- package/dist/chunk-EIOQKTRM.js +0 -104
- package/dist/chunk-FOSDCKCR.js +0 -106
- package/dist/chunk-G4OE26TZ.js +0 -33
- package/dist/chunk-GVGO5OAK.js +0 -8
- package/dist/chunk-GXRCTWKL.js +0 -16
- package/dist/chunk-HVKW7JK4.js +0 -8
- package/dist/chunk-IGEFNODG.js +0 -22
- package/dist/chunk-JXL4VJHZ.js +0 -36
- package/dist/chunk-K3GOQSS3.js +0 -6
- package/dist/chunk-KCJKQP37.js +0 -133
- package/dist/chunk-KMIFCLXG.js +0 -16
- package/dist/chunk-KZA3MC77.js +0 -151
- package/dist/chunk-LLL3V7LB.js +0 -6
- package/dist/chunk-LQ6DL2HS.js +0 -68
- package/dist/chunk-M4ZRDJJ2.js +0 -68
- package/dist/chunk-MAQAT3PU.js +0 -32
- package/dist/chunk-MPXPSSLJ.js +0 -133
- package/dist/chunk-NADN2PHB.js +0 -0
- package/dist/chunk-NFRXMBRP.js +0 -24
- package/dist/chunk-NVPKTRMT.js +0 -7
- package/dist/chunk-O45AB4MX.js +0 -83
- package/dist/chunk-ORPRWIQ2.js +0 -33
- package/dist/chunk-P7M5PEDY.js +0 -18
- package/dist/chunk-PBNCVQZC.js +0 -6
- package/dist/chunk-PMV4TMFS.js +0 -151
- package/dist/chunk-POF4JGTX.js +0 -186
- package/dist/chunk-PYSJMSNM.js +0 -27
- package/dist/chunk-Q3OMG6YH.js +0 -186
- package/dist/chunk-QCNBVSFO.js +0 -68
- package/dist/chunk-QMEO4OUR.js +0 -151
- package/dist/chunk-QSQNELZQ.js +0 -83
- package/dist/chunk-RRP7K5LI.js +0 -36
- package/dist/chunk-SHUYVCID.js +0 -6
- package/dist/chunk-SP4JKAUC.js +0 -63
- package/dist/chunk-T6OOKENF.js +0 -6
- package/dist/chunk-TBDROT3I.js +0 -6356
- package/dist/chunk-TH2RWMWA.js +0 -133
- package/dist/chunk-TJZCDDEV.js +0 -36
- package/dist/chunk-TN5SV7LF.js +0 -133
- package/dist/chunk-U6TOLKGJ.js +0 -22
- package/dist/chunk-UCOXL3OM.js +0 -0
- package/dist/chunk-URLTFJET.js +0 -68
- package/dist/chunk-UWCTG2LX.js +0 -24
- package/dist/chunk-WO2BXMBQ.js +0 -6
- package/dist/chunk-XAWZUZVP.js +0 -32
- package/dist/chunk-XCOSZXAE.js +0 -133
- package/dist/chunk-XD2Q7LWE.js +0 -24
- package/dist/chunk-XSL373TG.js +0 -36
- package/dist/chunk-XUYTJO6X.js +0 -104
- package/dist/chunk-YAYU7VOK.js +0 -8
- package/dist/chunk-YRUCICBV.js +0 -24
- package/dist/chunk-Z5XE72Q5.js +0 -68
- package/dist/chunk-ZTIO25VB.js +0 -8
- package/dist/lexer-DQCqS3nf-6W2BHF4T.js +0 -68
- package/dist/run.cjs +0 -943
- package/dist/run.js +0 -14
package/dist/index.d.cts
CHANGED
|
@@ -1,250 +1,261 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import { TableGuesser, Utils } from "./Utils-7OrjoB1C.cjs";
|
|
2
|
+
import { Application, ServiceProvider } from "@h3ravel/core";
|
|
3
|
+
import * as commander0 from "commander";
|
|
4
|
+
import { Argument, program } from "commander";
|
|
5
|
+
import { Logger } from "@h3ravel/shared";
|
|
6
|
+
import { XGeneric } from "@h3ravel/support";
|
|
7
|
+
import { Options } from "tsdown";
|
|
5
8
|
|
|
9
|
+
//#region src/Kernel.d.ts
|
|
6
10
|
declare class Kernel {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
consolePackage: XGeneric<{
|
|
25
|
-
version: string;
|
|
26
|
-
}>;
|
|
27
|
-
constructor(app: Application, basePath?: string);
|
|
28
|
-
static init(app: Application): void;
|
|
29
|
-
private run;
|
|
30
|
-
ensureDirectoryExists(dir: string): Promise<void>;
|
|
31
|
-
private loadRequirements;
|
|
11
|
+
app: Application;
|
|
12
|
+
cwd: string;
|
|
13
|
+
output: typeof Logger;
|
|
14
|
+
basePath: string;
|
|
15
|
+
modulePath: string;
|
|
16
|
+
consolePath: string;
|
|
17
|
+
modulePackage: XGeneric<{
|
|
18
|
+
version: string;
|
|
19
|
+
}>;
|
|
20
|
+
consolePackage: XGeneric<{
|
|
21
|
+
version: string;
|
|
22
|
+
}>;
|
|
23
|
+
constructor(app: Application);
|
|
24
|
+
static init(app: Application): void;
|
|
25
|
+
private run;
|
|
26
|
+
ensureDirectoryExists(dir: string): Promise<void>;
|
|
27
|
+
private loadRequirements;
|
|
32
28
|
}
|
|
33
|
-
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/Commands/Command.d.ts
|
|
34
31
|
declare class Command {
|
|
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
|
-
|
|
32
|
+
protected app: Application;
|
|
33
|
+
protected kernel: Kernel;
|
|
34
|
+
constructor(app: Application, kernel: Kernel);
|
|
35
|
+
/**
|
|
36
|
+
* The name and signature of the console command.
|
|
37
|
+
*
|
|
38
|
+
* @var string
|
|
39
|
+
*/
|
|
40
|
+
protected signature: string;
|
|
41
|
+
/**
|
|
42
|
+
* A dictionary of signatures or what not.
|
|
43
|
+
*
|
|
44
|
+
* @var object
|
|
45
|
+
*/
|
|
46
|
+
protected dictionary: Record<string, any>;
|
|
47
|
+
/**
|
|
48
|
+
* The console command description.
|
|
49
|
+
*
|
|
50
|
+
* @var string
|
|
51
|
+
*/
|
|
52
|
+
protected description?: string;
|
|
53
|
+
/**
|
|
54
|
+
* The console command input.
|
|
55
|
+
*
|
|
56
|
+
* @var object
|
|
57
|
+
*/
|
|
58
|
+
private input;
|
|
59
|
+
/**
|
|
60
|
+
* Execute the console command.
|
|
61
|
+
*/
|
|
62
|
+
handle(..._args: any[]): Promise<void>;
|
|
63
|
+
setApplication(app: Application): void;
|
|
64
|
+
setInput(options: XGeneric, args: string[], regArgs: readonly Argument[], dictionary: Record<string, any>): void;
|
|
65
|
+
getSignature(): string;
|
|
66
|
+
getDescription(): string | undefined;
|
|
67
|
+
option(key: string, def?: any): any;
|
|
68
|
+
options(key?: string): any;
|
|
69
|
+
argument(key: string, def?: any): any;
|
|
70
|
+
arguments(): Record<string, any>;
|
|
74
71
|
}
|
|
75
|
-
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/Commands/FireCommand.d.ts
|
|
74
|
+
declare class FireCommand extends Command {
|
|
75
|
+
/**
|
|
76
|
+
* The name and signature of the console command.
|
|
77
|
+
*
|
|
78
|
+
* @var string
|
|
79
|
+
*/
|
|
80
|
+
protected signature: string;
|
|
81
|
+
/**
|
|
82
|
+
* The console command description.
|
|
83
|
+
*
|
|
84
|
+
* @var string
|
|
85
|
+
*/
|
|
86
|
+
protected description: string;
|
|
87
|
+
handle(): Promise<void>;
|
|
88
|
+
protected fire(): Promise<void>;
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/Commands/MakeCommand.d.ts
|
|
76
92
|
declare class MakeCommand extends Command {
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
93
|
+
/**
|
|
94
|
+
* The name and signature of the console command.
|
|
95
|
+
*
|
|
96
|
+
* @var string
|
|
97
|
+
*/
|
|
98
|
+
protected signature: string;
|
|
99
|
+
/**
|
|
100
|
+
* The console command description.
|
|
101
|
+
*
|
|
102
|
+
* @var string
|
|
103
|
+
*/
|
|
104
|
+
protected description: string;
|
|
105
|
+
handle(): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Generate a new controller class.
|
|
108
|
+
*/
|
|
109
|
+
protected makeController(): Promise<void>;
|
|
110
|
+
protected makeResource(): void;
|
|
111
|
+
/**
|
|
112
|
+
* Generate a new database migration class
|
|
113
|
+
*/
|
|
114
|
+
protected makeMigration(): Promise<void>;
|
|
115
|
+
protected makeFactory(): void;
|
|
116
|
+
protected makeSeeder(): void;
|
|
117
|
+
/**
|
|
118
|
+
* Generate a new Arquebus model class
|
|
119
|
+
*/
|
|
120
|
+
protected makeModel(): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Ge the database migration file name
|
|
123
|
+
*
|
|
124
|
+
* @param table
|
|
125
|
+
* @param create
|
|
126
|
+
* @param type
|
|
127
|
+
* @returns
|
|
128
|
+
*/
|
|
129
|
+
getMigrationStubName(table?: string, create?: boolean, type?: 'ts' | 'js'): string;
|
|
114
130
|
}
|
|
115
|
-
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region src/Commands/MigrateCommand.d.ts
|
|
116
133
|
declare class MigrateCommand extends Command {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
134
|
+
/**
|
|
135
|
+
* The current database connection
|
|
136
|
+
*/
|
|
137
|
+
private connection;
|
|
138
|
+
/**
|
|
139
|
+
* The base path for all database operations
|
|
140
|
+
*/
|
|
141
|
+
private databasePath;
|
|
142
|
+
/**
|
|
143
|
+
* The name and signature of the console command.
|
|
144
|
+
*
|
|
145
|
+
* @var string
|
|
146
|
+
*/
|
|
147
|
+
protected signature: string;
|
|
148
|
+
/**
|
|
149
|
+
* The console command description.
|
|
150
|
+
*
|
|
151
|
+
* @var string
|
|
152
|
+
*/
|
|
153
|
+
protected description: string;
|
|
154
|
+
/**
|
|
155
|
+
* Execute the console command.
|
|
156
|
+
*/
|
|
157
|
+
handle(): Promise<void>;
|
|
158
|
+
/**
|
|
159
|
+
* Run all pending migrations.
|
|
160
|
+
*/
|
|
161
|
+
protected migrateRun(): Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* Drop all tables and re-run all migrations.
|
|
164
|
+
*/
|
|
165
|
+
protected migrateFresh(): Promise<void>;
|
|
166
|
+
/**
|
|
167
|
+
* Create the migration repository.
|
|
168
|
+
*/
|
|
169
|
+
protected migrateInstall(): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* Reset and re-run all migrations.
|
|
172
|
+
*/
|
|
173
|
+
protected migrateRefresh(): Promise<void>;
|
|
174
|
+
/**
|
|
175
|
+
* Rollback all database migrations.
|
|
176
|
+
*/
|
|
177
|
+
protected migrateReset(): Promise<void>;
|
|
178
|
+
/**
|
|
179
|
+
* Rollback the last database migration.
|
|
180
|
+
*/
|
|
181
|
+
protected migrateRollback(): Promise<void>;
|
|
182
|
+
/**
|
|
183
|
+
* Show the status of each migration.
|
|
184
|
+
*/
|
|
185
|
+
protected migrateStatus(): Promise<void>;
|
|
186
|
+
/**
|
|
187
|
+
* Publish any migration files from installed packages.
|
|
188
|
+
*/
|
|
189
|
+
protected migratePublish(): Promise<void>;
|
|
165
190
|
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* The name and signature of the console command.
|
|
170
|
-
*
|
|
171
|
-
* @var string
|
|
172
|
-
*/
|
|
173
|
-
protected signature: string;
|
|
174
|
-
/**
|
|
175
|
-
* The console command description.
|
|
176
|
-
*
|
|
177
|
-
* @var string
|
|
178
|
-
*/
|
|
179
|
-
protected description: string;
|
|
180
|
-
handle(): Promise<void>;
|
|
181
|
-
protected serve(): Promise<void>;
|
|
182
|
-
}
|
|
183
|
-
|
|
191
|
+
//#endregion
|
|
192
|
+
//#region src/Contracts/ICommand.d.ts
|
|
184
193
|
type CommandOption = {
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
194
|
+
name: string;
|
|
195
|
+
required?: boolean;
|
|
196
|
+
multiple?: boolean;
|
|
197
|
+
defaultValue?: string | number | boolean | undefined | string[];
|
|
198
|
+
shared?: boolean;
|
|
199
|
+
description?: string;
|
|
200
|
+
/**
|
|
201
|
+
* for options like --Q|queue
|
|
202
|
+
*/
|
|
203
|
+
flags?: string[];
|
|
204
|
+
/**
|
|
205
|
+
* true if it's a flag option
|
|
206
|
+
*/
|
|
207
|
+
isFlag?: boolean;
|
|
208
|
+
/**
|
|
209
|
+
* true if name begins with '#' or '^'
|
|
210
|
+
*/
|
|
211
|
+
isHidden?: boolean;
|
|
212
|
+
/**
|
|
213
|
+
* for nested options
|
|
214
|
+
*/
|
|
215
|
+
nestedOptions?: CommandOption[];
|
|
207
216
|
};
|
|
208
217
|
type ParsedCommand = {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
218
|
+
commandClass: Command;
|
|
219
|
+
baseCommand: string;
|
|
220
|
+
description?: string;
|
|
221
|
+
/**
|
|
222
|
+
* true if baseCommand begins with '#' or '^'
|
|
223
|
+
*/
|
|
224
|
+
isHidden?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* true if baseCommand ends with ':'
|
|
227
|
+
*/
|
|
228
|
+
isNamespaceCommand: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* for colon-ended commands
|
|
231
|
+
*/
|
|
232
|
+
subCommands?: CommandOption[];
|
|
233
|
+
/**
|
|
234
|
+
* for normal commands
|
|
235
|
+
*/
|
|
236
|
+
options?: CommandOption[];
|
|
228
237
|
};
|
|
229
|
-
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/Musket.d.ts
|
|
230
240
|
/**
|
|
231
241
|
* Musket is H3ravel's CLI tool
|
|
232
242
|
*/
|
|
233
243
|
declare class Musket {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
244
|
+
private app;
|
|
245
|
+
private kernel;
|
|
246
|
+
private output;
|
|
247
|
+
private commands;
|
|
248
|
+
constructor(app: Application, kernel: Kernel);
|
|
249
|
+
build(): Promise<commander0.Command>;
|
|
250
|
+
private loadBaseCommands;
|
|
251
|
+
private loadDiscoveredCommands;
|
|
252
|
+
addCommand(command: Command): void;
|
|
253
|
+
private initialize;
|
|
254
|
+
makeOption(opt: CommandOption, cmd: typeof program, parse?: boolean, parent?: any): void;
|
|
255
|
+
static parse(kernel: Kernel): Promise<commander0.Command>;
|
|
246
256
|
}
|
|
247
|
-
|
|
257
|
+
//#endregion
|
|
258
|
+
//#region src/Providers/ConsoleServiceProvider.d.ts
|
|
248
259
|
/**
|
|
249
260
|
* Handles CLI commands and tooling.
|
|
250
261
|
*
|
|
@@ -255,67 +266,36 @@ declare class Musket {
|
|
|
255
266
|
* Auto-Registered when in CLI mode
|
|
256
267
|
*/
|
|
257
268
|
declare class ConsoleServiceProvider extends ServiceProvider {
|
|
258
|
-
|
|
259
|
-
|
|
269
|
+
static priority: number;
|
|
270
|
+
/**
|
|
271
|
+
* Indicate that this service provider only runs in console
|
|
272
|
+
*/
|
|
273
|
+
static console: boolean;
|
|
274
|
+
register(): void;
|
|
275
|
+
boot(): void;
|
|
260
276
|
}
|
|
261
|
-
|
|
277
|
+
//#endregion
|
|
278
|
+
//#region src/Signature.d.ts
|
|
262
279
|
declare class Signature {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
280
|
+
/**
|
|
281
|
+
* Helper to parse options inside a block of text
|
|
282
|
+
*
|
|
283
|
+
* @param block
|
|
284
|
+
* @returns
|
|
285
|
+
*/
|
|
286
|
+
static parseOptions(block: string): CommandOption[];
|
|
287
|
+
/**
|
|
288
|
+
* Helper to parse a command's signature
|
|
289
|
+
*
|
|
290
|
+
* @param signature
|
|
291
|
+
* @param commandClass
|
|
292
|
+
* @returns
|
|
293
|
+
*/
|
|
294
|
+
static parseSignature(signature: string, commandClass: Command): ParsedCommand;
|
|
278
295
|
}
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
* @param color
|
|
286
|
-
* @returns
|
|
287
|
-
*/
|
|
288
|
-
static textFormat(txt: any, color: (txt: string) => string): string;
|
|
289
|
-
/**
|
|
290
|
-
* Ouput formater object
|
|
291
|
-
*
|
|
292
|
-
* @returns
|
|
293
|
-
*/
|
|
294
|
-
static output(): {
|
|
295
|
-
success: (msg: any, exit?: boolean) => void;
|
|
296
|
-
info: (msg: any, exit?: boolean) => void;
|
|
297
|
-
error: (msg: string | string[] | (Error & {
|
|
298
|
-
detail?: string;
|
|
299
|
-
}), exit?: boolean) => void;
|
|
300
|
-
split: (name: string, value: string, status?: "success" | "info" | "error", exit?: boolean) => void;
|
|
301
|
-
quiet: () => never;
|
|
302
|
-
};
|
|
303
|
-
static findModulePkg(moduleId: string, cwd?: string): string | undefined;
|
|
304
|
-
static getMigrationPaths(cwd: string, migrator: any, defaultPath: string, path: string): Promise<any[]>;
|
|
305
|
-
static twoColumnDetail(name: string, value: string): void;
|
|
306
|
-
/**
|
|
307
|
-
* Check if file exists
|
|
308
|
-
*
|
|
309
|
-
* @param path
|
|
310
|
-
* @returns
|
|
311
|
-
*/
|
|
312
|
-
static fileExists(path: string): Promise<boolean>;
|
|
313
|
-
static findUpConfig(cwd: string, name: string, extensions: string[]): string | void;
|
|
314
|
-
}
|
|
315
|
-
declare class TableGuesser {
|
|
316
|
-
static CREATE_PATTERNS: RegExp[];
|
|
317
|
-
static CHANGE_PATTERNS: RegExp[];
|
|
318
|
-
static guess(migration: string): (string | boolean)[];
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export { Command, type CommandOption, ConsoleServiceProvider, Kernel, MakeCommand, MigrateCommand, Musket, type ParsedCommand, ServeCommand, Signature, TableGuesser, Utils };
|
|
296
|
+
//#endregion
|
|
297
|
+
//#region src/TsdownConfig.d.ts
|
|
298
|
+
declare const TsDownConfig: Options;
|
|
299
|
+
//#endregion
|
|
300
|
+
export { Command, CommandOption, ConsoleServiceProvider, FireCommand, Kernel, MakeCommand, MigrateCommand, Musket, ParsedCommand, Signature, TableGuesser, TsDownConfig, Utils };
|
|
301
|
+
//# sourceMappingURL=index.d.cts.map
|