oclif 4.6.1-dev.0 → 4.6.1-dev.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/lib/commands/generate.d.ts +1 -0
- package/lib/commands/generate.js +5 -0
- package/lib/generator.d.ts +0 -3
- package/lib/generator.js +0 -7
- package/oclif.manifest.json +11 -34
- package/package.json +3 -2
|
@@ -50,6 +50,7 @@ export default class Generate extends GeneratorCommand<typeof Generate> {
|
|
|
50
50
|
};
|
|
51
51
|
static flags: {
|
|
52
52
|
'output-dir': import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
53
|
+
yes: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
53
54
|
name: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
54
55
|
description: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
55
56
|
bin: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
package/lib/commands/generate.js
CHANGED
|
@@ -127,6 +127,11 @@ class Generate extends generator_1.GeneratorCommand {
|
|
|
127
127
|
char: 'd',
|
|
128
128
|
description: 'Directory to build the CLI in.',
|
|
129
129
|
}),
|
|
130
|
+
yes: core_1.Flags.boolean({
|
|
131
|
+
aliases: ['defaults'],
|
|
132
|
+
char: 'y',
|
|
133
|
+
description: 'Use defaults for all prompts. Individual flags will override defaults.',
|
|
134
|
+
}),
|
|
130
135
|
};
|
|
131
136
|
static summary = 'Generate a new CLI';
|
|
132
137
|
async run() {
|
package/lib/generator.d.ts
CHANGED
|
@@ -20,9 +20,6 @@ export declare function readPJSON(location: string): Promise<(Interfaces.PJSON.C
|
|
|
20
20
|
}) | undefined>;
|
|
21
21
|
export declare function makeFlags<T extends Record<string, FlaggablePrompt>>(flaggablePrompts: T): FlagsOfPrompts<T>;
|
|
22
22
|
export declare abstract class GeneratorCommand<T extends typeof Command> extends Command {
|
|
23
|
-
static baseFlags: {
|
|
24
|
-
yes: Interfaces.BooleanFlag<boolean>;
|
|
25
|
-
};
|
|
26
23
|
protected args: Args<T>;
|
|
27
24
|
protected flaggablePrompts: Record<string, FlaggablePrompt>;
|
|
28
25
|
protected flags: Flags<T>;
|
package/lib/generator.js
CHANGED
|
@@ -58,13 +58,6 @@ function makeFlags(flaggablePrompts) {
|
|
|
58
58
|
}
|
|
59
59
|
exports.makeFlags = makeFlags;
|
|
60
60
|
class GeneratorCommand extends core_1.Command {
|
|
61
|
-
static baseFlags = {
|
|
62
|
-
yes: core_1.Flags.boolean({
|
|
63
|
-
aliases: ['defaults'],
|
|
64
|
-
char: 'y',
|
|
65
|
-
description: 'Use defaults for all prompts. Individual flags will override defaults.',
|
|
66
|
-
}),
|
|
67
|
-
};
|
|
68
61
|
args;
|
|
69
62
|
flaggablePrompts;
|
|
70
63
|
flags;
|
package/oclif.manifest.json
CHANGED
|
@@ -29,16 +29,6 @@
|
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"flags": {
|
|
32
|
-
"yes": {
|
|
33
|
-
"aliases": [
|
|
34
|
-
"defaults"
|
|
35
|
-
],
|
|
36
|
-
"char": "y",
|
|
37
|
-
"description": "Use defaults for all prompts. Individual flags will override defaults.",
|
|
38
|
-
"name": "yes",
|
|
39
|
-
"allowNo": false,
|
|
40
|
-
"type": "boolean"
|
|
41
|
-
},
|
|
42
32
|
"author": {
|
|
43
33
|
"description": "Supply answer for prompt: Author",
|
|
44
34
|
"name": "author",
|
|
@@ -117,6 +107,16 @@
|
|
|
117
107
|
"hasDynamicHelp": false,
|
|
118
108
|
"multiple": false,
|
|
119
109
|
"type": "option"
|
|
110
|
+
},
|
|
111
|
+
"yes": {
|
|
112
|
+
"aliases": [
|
|
113
|
+
"defaults"
|
|
114
|
+
],
|
|
115
|
+
"char": "y",
|
|
116
|
+
"description": "Use defaults for all prompts. Individual flags will override defaults.",
|
|
117
|
+
"name": "yes",
|
|
118
|
+
"allowNo": false,
|
|
119
|
+
"type": "boolean"
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"hasDynamicHelp": false,
|
|
@@ -127,7 +127,6 @@
|
|
|
127
127
|
"pluginType": "core",
|
|
128
128
|
"strict": true,
|
|
129
129
|
"summary": "Generate a new CLI",
|
|
130
|
-
"enableJsonFlag": false,
|
|
131
130
|
"flaggablePrompts": {
|
|
132
131
|
"author": {
|
|
133
132
|
"message": "Author"
|
|
@@ -434,16 +433,6 @@
|
|
|
434
433
|
},
|
|
435
434
|
"description": "Add a command to an existing CLI or plugin.",
|
|
436
435
|
"flags": {
|
|
437
|
-
"yes": {
|
|
438
|
-
"aliases": [
|
|
439
|
-
"defaults"
|
|
440
|
-
],
|
|
441
|
-
"char": "y",
|
|
442
|
-
"description": "Use defaults for all prompts. Individual flags will override defaults.",
|
|
443
|
-
"name": "yes",
|
|
444
|
-
"allowNo": false,
|
|
445
|
-
"type": "boolean"
|
|
446
|
-
},
|
|
447
436
|
"commands-dir": {
|
|
448
437
|
"description": "The directory to create the command in.",
|
|
449
438
|
"name": "commands-dir",
|
|
@@ -466,7 +455,6 @@
|
|
|
466
455
|
"pluginName": "oclif",
|
|
467
456
|
"pluginType": "core",
|
|
468
457
|
"strict": true,
|
|
469
|
-
"enableJsonFlag": false,
|
|
470
458
|
"isESM": false,
|
|
471
459
|
"relativePath": [
|
|
472
460
|
"lib",
|
|
@@ -486,16 +474,6 @@
|
|
|
486
474
|
},
|
|
487
475
|
"description": "Add a hook to an existing CLI or plugin.",
|
|
488
476
|
"flags": {
|
|
489
|
-
"yes": {
|
|
490
|
-
"aliases": [
|
|
491
|
-
"defaults"
|
|
492
|
-
],
|
|
493
|
-
"char": "y",
|
|
494
|
-
"description": "Use defaults for all prompts. Individual flags will override defaults.",
|
|
495
|
-
"name": "yes",
|
|
496
|
-
"allowNo": false,
|
|
497
|
-
"type": "boolean"
|
|
498
|
-
},
|
|
499
477
|
"event": {
|
|
500
478
|
"description": "Event to run hook on.",
|
|
501
479
|
"name": "event",
|
|
@@ -518,7 +496,6 @@
|
|
|
518
496
|
"pluginName": "oclif",
|
|
519
497
|
"pluginType": "core",
|
|
520
498
|
"strict": true,
|
|
521
|
-
"enableJsonFlag": false,
|
|
522
499
|
"isESM": false,
|
|
523
500
|
"relativePath": [
|
|
524
501
|
"lib",
|
|
@@ -930,5 +907,5 @@
|
|
|
930
907
|
]
|
|
931
908
|
}
|
|
932
909
|
},
|
|
933
|
-
"version": "4.6.1-dev.
|
|
910
|
+
"version": "4.6.1-dev.1"
|
|
934
911
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oclif",
|
|
3
3
|
"description": "oclif: create your own CLI",
|
|
4
|
-
"version": "4.6.1-dev.
|
|
4
|
+
"version": "4.6.1-dev.1",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
7
7
|
"oclif": "bin/run.js"
|
|
@@ -139,7 +139,8 @@
|
|
|
139
139
|
"test:integration:sf": "mocha test/integration/sf.test.ts --timeout 600000",
|
|
140
140
|
"test:integration:win": "mocha test/integration/win.test.ts --timeout 900000",
|
|
141
141
|
"test:integration": "mocha --forbid-only \"test/integration/*.test.ts\" --timeout 900000",
|
|
142
|
-
"test": "nyc mocha --forbid-only \"test/unit/*.test.ts\""
|
|
142
|
+
"test": "nyc mocha --forbid-only \"test/unit/*.test.ts\"",
|
|
143
|
+
"oclif": "bin/run.js"
|
|
143
144
|
},
|
|
144
145
|
"publishConfig": {
|
|
145
146
|
"registry": "https://registry.npmjs.org"
|