@h3ravel/console 11.1.0 → 11.2.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 +1 -1
- package/bin/fire.js +1 -1
- package/dist/{Utils-B1kpj9-1.cjs → Utils-CpiQZ3n9.cjs} +7 -15
- package/dist/Utils-CpiQZ3n9.cjs.map +1 -0
- package/dist/{Utils-DAJvoXlr.js → Utils-Dvclc4Pc.js} +2 -15
- package/dist/Utils-Dvclc4Pc.js.map +1 -0
- package/dist/{Utils-DxnHOGMz.d.ts → Utils-cBgwEyTl.d.ts} +1 -3
- package/dist/{Utils-7OrjoB1C.d.cts → Utils-rIdzILgO.d.cts} +1 -3
- package/dist/Utils.cjs +1 -1
- package/dist/Utils.d.cts +1 -1
- package/dist/Utils.d.ts +1 -1
- package/dist/Utils.js +1 -1
- package/dist/index.cjs +324 -435
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -133
- package/dist/index.d.ts +31 -133
- package/dist/index.js +319 -429
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/Utils-B1kpj9-1.cjs.map +0 -1
- package/dist/Utils-DAJvoXlr.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,77 +1,14 @@
|
|
|
1
|
-
import { TableGuesser, Utils } from "./Utils-
|
|
2
|
-
import { Application, ServiceProvider } from "@h3ravel/core";
|
|
3
|
-
import { Logger } from "@h3ravel/shared";
|
|
1
|
+
import { TableGuesser, Utils } from "./Utils-cBgwEyTl.js";
|
|
2
|
+
import { Application, ConsoleCommand, ConsoleKernel, ServiceProvider } from "@h3ravel/core";
|
|
4
3
|
import * as commander0 from "commander";
|
|
5
|
-
import {
|
|
6
|
-
import { XGeneric } from "@h3ravel/support";
|
|
4
|
+
import { program } from "commander";
|
|
7
5
|
import { Options } from "tsdown";
|
|
8
6
|
|
|
9
|
-
//#region src/Kernel.d.ts
|
|
10
|
-
declare class Kernel {
|
|
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;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
7
|
//#region src/Commands/Command.d.ts
|
|
31
|
-
declare class Command {
|
|
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>;
|
|
71
|
-
}
|
|
8
|
+
declare class Command extends ConsoleCommand {}
|
|
72
9
|
//#endregion
|
|
73
|
-
//#region src/Commands/
|
|
74
|
-
declare class
|
|
10
|
+
//#region src/Commands/ListCommand.d.ts
|
|
11
|
+
declare class ListCommand extends Command {
|
|
75
12
|
/**
|
|
76
13
|
* The name and signature of the console command.
|
|
77
14
|
*
|
|
@@ -85,7 +22,6 @@ declare class FireCommand extends Command {
|
|
|
85
22
|
*/
|
|
86
23
|
protected description: string;
|
|
87
24
|
handle(): Promise<void>;
|
|
88
|
-
protected fire(): Promise<void>;
|
|
89
25
|
}
|
|
90
26
|
//#endregion
|
|
91
27
|
//#region src/Commands/MakeCommand.d.ts
|
|
@@ -104,7 +40,7 @@ declare class MakeCommand extends Command {
|
|
|
104
40
|
protected description: string;
|
|
105
41
|
handle(): Promise<void>;
|
|
106
42
|
/**
|
|
107
|
-
*
|
|
43
|
+
* Create a new controller class.
|
|
108
44
|
*/
|
|
109
45
|
protected makeController(): Promise<void>;
|
|
110
46
|
protected makeResource(): void;
|
|
@@ -112,12 +48,22 @@ declare class MakeCommand extends Command {
|
|
|
112
48
|
* Generate a new database migration class
|
|
113
49
|
*/
|
|
114
50
|
protected makeMigration(): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Create a new model factory
|
|
53
|
+
*/
|
|
115
54
|
protected makeFactory(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Create a new seeder class
|
|
57
|
+
*/
|
|
116
58
|
protected makeSeeder(): void;
|
|
117
59
|
/**
|
|
118
60
|
* Generate a new Arquebus model class
|
|
119
61
|
*/
|
|
120
62
|
protected makeModel(): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Create a new view.
|
|
65
|
+
*/
|
|
66
|
+
protected makeView(): Promise<void>;
|
|
121
67
|
/**
|
|
122
68
|
* Ge the database migration file name
|
|
123
69
|
*
|
|
@@ -129,66 +75,6 @@ declare class MakeCommand extends Command {
|
|
|
129
75
|
getMigrationStubName(table?: string, create?: boolean, type?: 'ts' | 'js'): string;
|
|
130
76
|
}
|
|
131
77
|
//#endregion
|
|
132
|
-
//#region src/Commands/MigrateCommand.d.ts
|
|
133
|
-
declare class MigrateCommand extends Command {
|
|
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>;
|
|
190
|
-
}
|
|
191
|
-
//#endregion
|
|
192
78
|
//#region src/Contracts/ICommand.d.ts
|
|
193
79
|
type CommandOption = {
|
|
194
80
|
name: string;
|
|
@@ -236,6 +122,19 @@ type ParsedCommand = {
|
|
|
236
122
|
options?: CommandOption[];
|
|
237
123
|
};
|
|
238
124
|
//#endregion
|
|
125
|
+
//#region src/Kernel.d.ts
|
|
126
|
+
declare class Kernel extends ConsoleKernel {
|
|
127
|
+
app: Application;
|
|
128
|
+
constructor(app: Application);
|
|
129
|
+
static init(app: Application): void;
|
|
130
|
+
private run;
|
|
131
|
+
private loadRequirements;
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
134
|
+
//#region src/logo.d.ts
|
|
135
|
+
declare const logo: string;
|
|
136
|
+
declare const altLogo: string;
|
|
137
|
+
//#endregion
|
|
239
138
|
//#region src/Musket.d.ts
|
|
240
139
|
/**
|
|
241
140
|
* Musket is H3ravel's CLI tool
|
|
@@ -243,7 +142,6 @@ type ParsedCommand = {
|
|
|
243
142
|
declare class Musket {
|
|
244
143
|
private app;
|
|
245
144
|
private kernel;
|
|
246
|
-
private output;
|
|
247
145
|
private commands;
|
|
248
146
|
constructor(app: Application, kernel: Kernel);
|
|
249
147
|
build(): Promise<commander0.Command>;
|
|
@@ -297,5 +195,5 @@ declare class Signature {
|
|
|
297
195
|
//#region src/TsdownConfig.d.ts
|
|
298
196
|
declare const TsDownConfig: Options;
|
|
299
197
|
//#endregion
|
|
300
|
-
export { Command, CommandOption, ConsoleServiceProvider,
|
|
198
|
+
export { Command, CommandOption, ConsoleServiceProvider, Kernel, ListCommand, MakeCommand, Musket, ParsedCommand, Signature, TableGuesser, TsDownConfig, Utils, altLogo, logo };
|
|
301
199
|
//# sourceMappingURL=index.d.ts.map
|