@h3ravel/console 11.1.0 → 11.2.1

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/dist/index.d.ts CHANGED
@@ -1,77 +1,13 @@
1
- import { TableGuesser, Utils } from "./Utils-DxnHOGMz.js";
2
- import { Application, ServiceProvider } from "@h3ravel/core";
3
- import { Logger } from "@h3ravel/shared";
4
- import * as commander0 from "commander";
5
- import { Argument, program } from "commander";
6
- import { XGeneric } from "@h3ravel/support";
1
+ import { TableGuesser, Utils } from "./Utils-cBgwEyTl.js";
2
+ import { Application, ConsoleCommand, ConsoleKernel, ServiceProvider } from "@h3ravel/core";
3
+ import { Command as Command$1 } from "commander";
7
4
  import { Options } from "tsdown";
8
5
 
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
6
  //#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
- }
7
+ declare class Command extends ConsoleCommand {}
72
8
  //#endregion
73
- //#region src/Commands/FireCommand.d.ts
74
- declare class FireCommand extends Command {
9
+ //#region src/Commands/ListCommand.d.ts
10
+ declare class ListCommand extends Command {
75
11
  /**
76
12
  * The name and signature of the console command.
77
13
  *
@@ -85,7 +21,6 @@ declare class FireCommand extends Command {
85
21
  */
86
22
  protected description: string;
87
23
  handle(): Promise<void>;
88
- protected fire(): Promise<void>;
89
24
  }
90
25
  //#endregion
91
26
  //#region src/Commands/MakeCommand.d.ts
@@ -104,7 +39,7 @@ declare class MakeCommand extends Command {
104
39
  protected description: string;
105
40
  handle(): Promise<void>;
106
41
  /**
107
- * Generate a new controller class.
42
+ * Create a new controller class.
108
43
  */
109
44
  protected makeController(): Promise<void>;
110
45
  protected makeResource(): void;
@@ -112,12 +47,22 @@ declare class MakeCommand extends Command {
112
47
  * Generate a new database migration class
113
48
  */
114
49
  protected makeMigration(): Promise<void>;
50
+ /**
51
+ * Create a new model factory
52
+ */
115
53
  protected makeFactory(): void;
54
+ /**
55
+ * Create a new seeder class
56
+ */
116
57
  protected makeSeeder(): void;
117
58
  /**
118
59
  * Generate a new Arquebus model class
119
60
  */
120
61
  protected makeModel(): Promise<void>;
62
+ /**
63
+ * Create a new view.
64
+ */
65
+ protected makeView(): Promise<void>;
121
66
  /**
122
67
  * Ge the database migration file name
123
68
  *
@@ -129,66 +74,6 @@ declare class MakeCommand extends Command {
129
74
  getMigrationStubName(table?: string, create?: boolean, type?: 'ts' | 'js'): string;
130
75
  }
131
76
  //#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
77
  //#region src/Contracts/ICommand.d.ts
193
78
  type CommandOption = {
194
79
  name: string;
@@ -236,6 +121,19 @@ type ParsedCommand = {
236
121
  options?: CommandOption[];
237
122
  };
238
123
  //#endregion
124
+ //#region src/Kernel.d.ts
125
+ declare class Kernel extends ConsoleKernel {
126
+ app: Application;
127
+ constructor(app: Application);
128
+ static init(app: Application): void;
129
+ private run;
130
+ private loadRequirements;
131
+ }
132
+ //#endregion
133
+ //#region src/logo.d.ts
134
+ declare const logo: string;
135
+ declare const altLogo: string;
136
+ //#endregion
239
137
  //#region src/Musket.d.ts
240
138
  /**
241
139
  * Musket is H3ravel's CLI tool
@@ -243,16 +141,15 @@ type ParsedCommand = {
243
141
  declare class Musket {
244
142
  private app;
245
143
  private kernel;
246
- private output;
247
144
  private commands;
248
145
  constructor(app: Application, kernel: Kernel);
249
- build(): Promise<commander0.Command>;
146
+ build(): Promise<Command$1>;
250
147
  private loadBaseCommands;
251
148
  private loadDiscoveredCommands;
252
149
  addCommand(command: Command): void;
253
150
  private initialize;
254
- makeOption(opt: CommandOption, cmd: typeof program, parse?: boolean, parent?: any): void;
255
- static parse(kernel: Kernel): Promise<commander0.Command>;
151
+ makeOption(opt: CommandOption, cmd: Command$1, parse?: boolean, parent?: any): void;
152
+ static parse(kernel: Kernel): Promise<Command$1>;
256
153
  }
257
154
  //#endregion
258
155
  //#region src/Providers/ConsoleServiceProvider.d.ts
@@ -297,5 +194,5 @@ declare class Signature {
297
194
  //#region src/TsdownConfig.d.ts
298
195
  declare const TsDownConfig: Options;
299
196
  //#endregion
300
- export { Command, CommandOption, ConsoleServiceProvider, FireCommand, Kernel, MakeCommand, MigrateCommand, Musket, ParsedCommand, Signature, TableGuesser, TsDownConfig, Utils };
197
+ export { Command, CommandOption, ConsoleServiceProvider, Kernel, ListCommand, MakeCommand, Musket, ParsedCommand, Signature, TableGuesser, TsDownConfig, Utils, altLogo, logo };
301
198
  //# sourceMappingURL=index.d.ts.map