@h3ravel/musket 0.3.2 → 0.3.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.
- package/dist/index.d.cts +6 -6
- package/dist/index.d.mts +6 -6
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -182,7 +182,7 @@ declare class Command {
|
|
|
182
182
|
option(key: string, def?: any): any;
|
|
183
183
|
options(key?: string): any;
|
|
184
184
|
argument(key: string, def?: any): any;
|
|
185
|
-
arguments():
|
|
185
|
+
arguments(): any;
|
|
186
186
|
loadBaseFlags(): void;
|
|
187
187
|
/**
|
|
188
188
|
* Check if the command is quiet
|
|
@@ -255,7 +255,7 @@ declare class Command {
|
|
|
255
255
|
/**
|
|
256
256
|
* The default value
|
|
257
257
|
*/
|
|
258
|
-
def?: string | undefined):
|
|
258
|
+
def?: string | undefined): any;
|
|
259
259
|
/**
|
|
260
260
|
* Allows users to pick from a predefined set of choices when asked a question.
|
|
261
261
|
*/
|
|
@@ -271,7 +271,7 @@ declare class Command {
|
|
|
271
271
|
/**
|
|
272
272
|
* Item index front of which the cursor will initially appear
|
|
273
273
|
*/
|
|
274
|
-
defaultIndex?: number):
|
|
274
|
+
defaultIndex?: number): any;
|
|
275
275
|
/**
|
|
276
276
|
* Ask the user for a simple "yes or no" confirmation. By default, this method returns `false`.
|
|
277
277
|
* However, if the user enters y or yes in response to the prompt, the method would return `true`.
|
|
@@ -284,7 +284,7 @@ declare class Command {
|
|
|
284
284
|
/**
|
|
285
285
|
* The default value
|
|
286
286
|
*/
|
|
287
|
-
def?: boolean | undefined):
|
|
287
|
+
def?: boolean | undefined): any;
|
|
288
288
|
/**
|
|
289
289
|
* Prompt the user with the given question, accept their input which will
|
|
290
290
|
* not be visible to them as they type in the console, and then return the user's input back to your command.
|
|
@@ -299,7 +299,7 @@ declare class Command {
|
|
|
299
299
|
*
|
|
300
300
|
* @default true
|
|
301
301
|
*/
|
|
302
|
-
mask?: string | boolean):
|
|
302
|
+
mask?: string | boolean): any;
|
|
303
303
|
/**
|
|
304
304
|
* Provide auto-completion for possible choices. The user can still provide any
|
|
305
305
|
* answer, regardless of the auto-completion hints.
|
|
@@ -316,7 +316,7 @@ declare class Command {
|
|
|
316
316
|
/**
|
|
317
317
|
* Set a default value
|
|
318
318
|
*/
|
|
319
|
-
def?: string):
|
|
319
|
+
def?: string): any;
|
|
320
320
|
}
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region src/Musket.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -182,7 +182,7 @@ declare class Command {
|
|
|
182
182
|
option(key: string, def?: any): any;
|
|
183
183
|
options(key?: string): any;
|
|
184
184
|
argument(key: string, def?: any): any;
|
|
185
|
-
arguments():
|
|
185
|
+
arguments(): any;
|
|
186
186
|
loadBaseFlags(): void;
|
|
187
187
|
/**
|
|
188
188
|
* Check if the command is quiet
|
|
@@ -255,7 +255,7 @@ declare class Command {
|
|
|
255
255
|
/**
|
|
256
256
|
* The default value
|
|
257
257
|
*/
|
|
258
|
-
def?: string | undefined):
|
|
258
|
+
def?: string | undefined): any;
|
|
259
259
|
/**
|
|
260
260
|
* Allows users to pick from a predefined set of choices when asked a question.
|
|
261
261
|
*/
|
|
@@ -271,7 +271,7 @@ declare class Command {
|
|
|
271
271
|
/**
|
|
272
272
|
* Item index front of which the cursor will initially appear
|
|
273
273
|
*/
|
|
274
|
-
defaultIndex?: number):
|
|
274
|
+
defaultIndex?: number): any;
|
|
275
275
|
/**
|
|
276
276
|
* Ask the user for a simple "yes or no" confirmation. By default, this method returns `false`.
|
|
277
277
|
* However, if the user enters y or yes in response to the prompt, the method would return `true`.
|
|
@@ -284,7 +284,7 @@ declare class Command {
|
|
|
284
284
|
/**
|
|
285
285
|
* The default value
|
|
286
286
|
*/
|
|
287
|
-
def?: boolean | undefined):
|
|
287
|
+
def?: boolean | undefined): any;
|
|
288
288
|
/**
|
|
289
289
|
* Prompt the user with the given question, accept their input which will
|
|
290
290
|
* not be visible to them as they type in the console, and then return the user's input back to your command.
|
|
@@ -299,7 +299,7 @@ declare class Command {
|
|
|
299
299
|
*
|
|
300
300
|
* @default true
|
|
301
301
|
*/
|
|
302
|
-
mask?: string | boolean):
|
|
302
|
+
mask?: string | boolean): any;
|
|
303
303
|
/**
|
|
304
304
|
* Provide auto-completion for possible choices. The user can still provide any
|
|
305
305
|
* answer, regardless of the auto-completion hints.
|
|
@@ -316,7 +316,7 @@ declare class Command {
|
|
|
316
316
|
/**
|
|
317
317
|
* Set a default value
|
|
318
318
|
*/
|
|
319
|
-
def?: string):
|
|
319
|
+
def?: string): any;
|
|
320
320
|
}
|
|
321
321
|
//#endregion
|
|
322
322
|
//#region src/Musket.d.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/musket",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Musket CLI is a framework-agnostic CLI framework designed to allow you build artisan-like CLI apps and for use in the H3ravel framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"console"
|
|
54
54
|
],
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@h3ravel/support": "^0.15.
|
|
56
|
+
"@h3ravel/support": "^0.15.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^24.7.2",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"vitest": "^3.2.4"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@h3ravel/shared": "^0.27.
|
|
72
|
+
"@h3ravel/shared": "^0.27.2",
|
|
73
73
|
"chalk": "^5.6.2",
|
|
74
74
|
"commander": "^14.0.1",
|
|
75
75
|
"dayjs": "^1.11.18",
|