@oclif/plugin-test-cjs-2 0.6.37 → 0.7.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/README.md +32 -29
- package/dist/commands/cjs2.d.ts +5 -5
- package/dist/commands/cjs2.js +10 -10
- package/oclif.manifest.json +45 -27
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g @oclif/plugin-test-cjs-2
|
|
|
18
18
|
$ cjs2 COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ cjs2 (--version)
|
|
21
|
-
@oclif/plugin-test-cjs-2/0.
|
|
21
|
+
@oclif/plugin-test-cjs-2/0.7.1 linux-x64 node-v20.14.0
|
|
22
22
|
$ cjs2 --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ cjs2 COMMAND
|
|
@@ -44,16 +44,19 @@ USAGE
|
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
USAGE
|
|
47
|
-
$ cjs2 cjs2 [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG] [--optionalString <value>]
|
|
48
|
-
<value>] [--defaultFnString <value>]
|
|
47
|
+
$ cjs2 cjs2 [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG] [--json] [--optionalString <value>]
|
|
48
|
+
[--defaultString <value>] [--defaultFnString <value>]
|
|
49
49
|
|
|
50
50
|
FLAGS
|
|
51
51
|
--defaultFnString=<value> [default: async fn default]
|
|
52
52
|
--defaultString=<value> [default: simple string default]
|
|
53
53
|
--optionalString=<value>
|
|
54
|
+
|
|
55
|
+
GLOBAL FLAGS
|
|
56
|
+
--json Format output as json.
|
|
54
57
|
```
|
|
55
58
|
|
|
56
|
-
_See code: [src/commands/cjs2.ts](https://github.com/oclif/plugin-test-cjs-2/blob/v0.
|
|
59
|
+
_See code: [src/commands/cjs2.ts](https://github.com/oclif/plugin-test-cjs-2/blob/v0.7.1/src/commands/cjs2.ts)_
|
|
57
60
|
|
|
58
61
|
## `cjs2 help [COMMAND]`
|
|
59
62
|
|
|
@@ -61,10 +64,10 @@ Display help for cjs2.
|
|
|
61
64
|
|
|
62
65
|
```
|
|
63
66
|
USAGE
|
|
64
|
-
$ cjs2 help [COMMAND] [-n]
|
|
67
|
+
$ cjs2 help [COMMAND...] [-n]
|
|
65
68
|
|
|
66
69
|
ARGUMENTS
|
|
67
|
-
COMMAND Command to show help for.
|
|
70
|
+
COMMAND... Command to show help for.
|
|
68
71
|
|
|
69
72
|
FLAGS
|
|
70
73
|
-n, --nested-commands Include all nested commands in the output.
|
|
@@ -96,7 +99,7 @@ EXAMPLES
|
|
|
96
99
|
$ cjs2 plugins
|
|
97
100
|
```
|
|
98
101
|
|
|
99
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.
|
|
102
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/index.ts)_
|
|
100
103
|
|
|
101
104
|
## `cjs2 plugins add PLUGIN`
|
|
102
105
|
|
|
@@ -104,10 +107,10 @@ Installs a plugin into cjs2.
|
|
|
104
107
|
|
|
105
108
|
```
|
|
106
109
|
USAGE
|
|
107
|
-
$ cjs2 plugins add PLUGIN [--json] [-f] [-h] [-s | -v]
|
|
110
|
+
$ cjs2 plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
108
111
|
|
|
109
112
|
ARGUMENTS
|
|
110
|
-
PLUGIN Plugin to install.
|
|
113
|
+
PLUGIN... Plugin to install.
|
|
111
114
|
|
|
112
115
|
FLAGS
|
|
113
116
|
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
@@ -121,7 +124,7 @@ GLOBAL FLAGS
|
|
|
121
124
|
DESCRIPTION
|
|
122
125
|
Installs a plugin into cjs2.
|
|
123
126
|
|
|
124
|
-
Uses
|
|
127
|
+
Uses npm to install plugins.
|
|
125
128
|
|
|
126
129
|
Installation of a user-installed plugin will override a core plugin.
|
|
127
130
|
|
|
@@ -151,10 +154,10 @@ Displays installation properties of a plugin.
|
|
|
151
154
|
|
|
152
155
|
```
|
|
153
156
|
USAGE
|
|
154
|
-
$ cjs2 plugins
|
|
157
|
+
$ cjs2 plugins inspect PLUGIN...
|
|
155
158
|
|
|
156
159
|
ARGUMENTS
|
|
157
|
-
PLUGIN [default: .] Plugin to inspect.
|
|
160
|
+
PLUGIN... [default: .] Plugin to inspect.
|
|
158
161
|
|
|
159
162
|
FLAGS
|
|
160
163
|
-h, --help Show CLI help.
|
|
@@ -170,7 +173,7 @@ EXAMPLES
|
|
|
170
173
|
$ cjs2 plugins inspect myplugin
|
|
171
174
|
```
|
|
172
175
|
|
|
173
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.
|
|
176
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/inspect.ts)_
|
|
174
177
|
|
|
175
178
|
## `cjs2 plugins install PLUGIN`
|
|
176
179
|
|
|
@@ -178,10 +181,10 @@ Installs a plugin into cjs2.
|
|
|
178
181
|
|
|
179
182
|
```
|
|
180
183
|
USAGE
|
|
181
|
-
$ cjs2 plugins install PLUGIN [--json] [-f] [-h] [-s | -v]
|
|
184
|
+
$ cjs2 plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]
|
|
182
185
|
|
|
183
186
|
ARGUMENTS
|
|
184
|
-
PLUGIN Plugin to install.
|
|
187
|
+
PLUGIN... Plugin to install.
|
|
185
188
|
|
|
186
189
|
FLAGS
|
|
187
190
|
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
|
|
@@ -195,7 +198,7 @@ GLOBAL FLAGS
|
|
|
195
198
|
DESCRIPTION
|
|
196
199
|
Installs a plugin into cjs2.
|
|
197
200
|
|
|
198
|
-
Uses
|
|
201
|
+
Uses npm to install plugins.
|
|
199
202
|
|
|
200
203
|
Installation of a user-installed plugin will override a core plugin.
|
|
201
204
|
|
|
@@ -219,7 +222,7 @@ EXAMPLES
|
|
|
219
222
|
$ cjs2 plugins install someuser/someplugin
|
|
220
223
|
```
|
|
221
224
|
|
|
222
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.
|
|
225
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/install.ts)_
|
|
223
226
|
|
|
224
227
|
## `cjs2 plugins link PATH`
|
|
225
228
|
|
|
@@ -233,9 +236,9 @@ ARGUMENTS
|
|
|
233
236
|
PATH [default: .] path to plugin
|
|
234
237
|
|
|
235
238
|
FLAGS
|
|
236
|
-
-h, --help
|
|
239
|
+
-h, --help Show CLI help.
|
|
237
240
|
-v, --verbose
|
|
238
|
-
|
|
241
|
+
--[no-]install Install dependencies after linking the plugin.
|
|
239
242
|
|
|
240
243
|
DESCRIPTION
|
|
241
244
|
Links a plugin into the CLI for development.
|
|
@@ -249,7 +252,7 @@ EXAMPLES
|
|
|
249
252
|
$ cjs2 plugins link myplugin
|
|
250
253
|
```
|
|
251
254
|
|
|
252
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.
|
|
255
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/link.ts)_
|
|
253
256
|
|
|
254
257
|
## `cjs2 plugins remove [PLUGIN]`
|
|
255
258
|
|
|
@@ -257,10 +260,10 @@ Removes a plugin from the CLI.
|
|
|
257
260
|
|
|
258
261
|
```
|
|
259
262
|
USAGE
|
|
260
|
-
$ cjs2 plugins remove [PLUGIN] [-h] [-v]
|
|
263
|
+
$ cjs2 plugins remove [PLUGIN...] [-h] [-v]
|
|
261
264
|
|
|
262
265
|
ARGUMENTS
|
|
263
|
-
PLUGIN plugin to uninstall
|
|
266
|
+
PLUGIN... plugin to uninstall
|
|
264
267
|
|
|
265
268
|
FLAGS
|
|
266
269
|
-h, --help Show CLI help.
|
|
@@ -290,7 +293,7 @@ FLAGS
|
|
|
290
293
|
--reinstall Reinstall all plugins after uninstalling.
|
|
291
294
|
```
|
|
292
295
|
|
|
293
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.
|
|
296
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/reset.ts)_
|
|
294
297
|
|
|
295
298
|
## `cjs2 plugins uninstall [PLUGIN]`
|
|
296
299
|
|
|
@@ -298,10 +301,10 @@ Removes a plugin from the CLI.
|
|
|
298
301
|
|
|
299
302
|
```
|
|
300
303
|
USAGE
|
|
301
|
-
$ cjs2 plugins uninstall [PLUGIN] [-h] [-v]
|
|
304
|
+
$ cjs2 plugins uninstall [PLUGIN...] [-h] [-v]
|
|
302
305
|
|
|
303
306
|
ARGUMENTS
|
|
304
|
-
PLUGIN plugin to uninstall
|
|
307
|
+
PLUGIN... plugin to uninstall
|
|
305
308
|
|
|
306
309
|
FLAGS
|
|
307
310
|
-h, --help Show CLI help.
|
|
@@ -318,7 +321,7 @@ EXAMPLES
|
|
|
318
321
|
$ cjs2 plugins uninstall myplugin
|
|
319
322
|
```
|
|
320
323
|
|
|
321
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.
|
|
324
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/uninstall.ts)_
|
|
322
325
|
|
|
323
326
|
## `cjs2 plugins unlink [PLUGIN]`
|
|
324
327
|
|
|
@@ -326,10 +329,10 @@ Removes a plugin from the CLI.
|
|
|
326
329
|
|
|
327
330
|
```
|
|
328
331
|
USAGE
|
|
329
|
-
$ cjs2 plugins unlink [PLUGIN] [-h] [-v]
|
|
332
|
+
$ cjs2 plugins unlink [PLUGIN...] [-h] [-v]
|
|
330
333
|
|
|
331
334
|
ARGUMENTS
|
|
332
|
-
PLUGIN plugin to uninstall
|
|
335
|
+
PLUGIN... plugin to uninstall
|
|
333
336
|
|
|
334
337
|
FLAGS
|
|
335
338
|
-h, --help Show CLI help.
|
|
@@ -362,5 +365,5 @@ DESCRIPTION
|
|
|
362
365
|
Update installed plugins.
|
|
363
366
|
```
|
|
364
367
|
|
|
365
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.
|
|
368
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/update.ts)_
|
|
366
369
|
<!-- commandsstop -->
|
package/dist/commands/cjs2.d.ts
CHANGED
|
@@ -4,17 +4,17 @@ type Result = {
|
|
|
4
4
|
flags: Interfaces.InferredFlags<typeof CJS2.flags>;
|
|
5
5
|
};
|
|
6
6
|
export default class CJS2 extends Command {
|
|
7
|
-
static flags: {
|
|
8
|
-
optionalString: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
9
|
-
defaultString: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
|
|
10
|
-
defaultFnString: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
|
|
11
|
-
};
|
|
12
7
|
static args: {
|
|
13
8
|
optionalArg: Interfaces.Arg<string | undefined, Record<string, unknown>>;
|
|
14
9
|
defaultArg: Interfaces.Arg<string, Record<string, unknown>>;
|
|
15
10
|
defaultFnArg: Interfaces.Arg<string, Record<string, unknown>>;
|
|
16
11
|
};
|
|
17
12
|
static enableJsonFlag: boolean;
|
|
13
|
+
static flags: {
|
|
14
|
+
optionalString: Interfaces.OptionFlag<string | undefined, Interfaces.CustomOptions>;
|
|
15
|
+
defaultString: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
|
|
16
|
+
defaultFnString: Interfaces.OptionFlag<string, Interfaces.CustomOptions>;
|
|
17
|
+
};
|
|
18
18
|
run(): Promise<Result>;
|
|
19
19
|
}
|
|
20
20
|
export {};
|
package/dist/commands/cjs2.js
CHANGED
|
@@ -11,22 +11,22 @@ class CJS2 extends core_1.Command {
|
|
|
11
11
|
}
|
|
12
12
|
exports.default = CJS2;
|
|
13
13
|
_a = CJS2;
|
|
14
|
-
CJS2.flags = {
|
|
15
|
-
optionalString: core_1.Flags.string(),
|
|
16
|
-
defaultString: core_1.Flags.string({
|
|
17
|
-
default: 'simple string default',
|
|
18
|
-
}),
|
|
19
|
-
defaultFnString: core_1.Flags.string({
|
|
20
|
-
default: async () => Promise.resolve('async fn default'),
|
|
21
|
-
}),
|
|
22
|
-
};
|
|
23
14
|
CJS2.args = {
|
|
24
15
|
optionalArg: core_1.Args.string(),
|
|
25
16
|
defaultArg: core_1.Args.string({
|
|
26
17
|
default: 'simple string default',
|
|
27
18
|
}),
|
|
28
19
|
defaultFnArg: core_1.Args.string({
|
|
29
|
-
default: async () =>
|
|
20
|
+
default: async () => 'async fn default',
|
|
30
21
|
}),
|
|
31
22
|
};
|
|
32
23
|
CJS2.enableJsonFlag = true;
|
|
24
|
+
CJS2.flags = {
|
|
25
|
+
optionalString: core_1.Flags.string(),
|
|
26
|
+
defaultString: core_1.Flags.string({
|
|
27
|
+
default: 'simple string default',
|
|
28
|
+
}),
|
|
29
|
+
defaultFnString: core_1.Flags.string({
|
|
30
|
+
default: async () => 'async fn default',
|
|
31
|
+
}),
|
|
32
|
+
};
|
package/oclif.manifest.json
CHANGED
|
@@ -1,46 +1,64 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.6.37",
|
|
3
2
|
"commands": {
|
|
4
3
|
"cjs2": {
|
|
5
|
-
"id": "cjs2",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"pluginName": "@oclif/plugin-test-cjs-2",
|
|
8
|
-
"pluginAlias": "@oclif/plugin-test-cjs-2",
|
|
9
|
-
"pluginType": "core",
|
|
10
4
|
"aliases": [],
|
|
5
|
+
"args": {
|
|
6
|
+
"optionalArg": {
|
|
7
|
+
"name": "optionalArg"
|
|
8
|
+
},
|
|
9
|
+
"defaultArg": {
|
|
10
|
+
"default": "simple string default",
|
|
11
|
+
"name": "defaultArg"
|
|
12
|
+
},
|
|
13
|
+
"defaultFnArg": {
|
|
14
|
+
"default": "async fn default",
|
|
15
|
+
"name": "defaultFnArg"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
11
18
|
"flags": {
|
|
19
|
+
"json": {
|
|
20
|
+
"description": "Format output as json.",
|
|
21
|
+
"helpGroup": "GLOBAL",
|
|
22
|
+
"name": "json",
|
|
23
|
+
"allowNo": false,
|
|
24
|
+
"type": "boolean"
|
|
25
|
+
},
|
|
12
26
|
"optionalString": {
|
|
13
27
|
"name": "optionalString",
|
|
14
|
-
"
|
|
15
|
-
"multiple": false
|
|
28
|
+
"hasDynamicHelp": false,
|
|
29
|
+
"multiple": false,
|
|
30
|
+
"type": "option"
|
|
16
31
|
},
|
|
17
32
|
"defaultString": {
|
|
18
33
|
"name": "defaultString",
|
|
19
|
-
"
|
|
34
|
+
"default": "simple string default",
|
|
35
|
+
"hasDynamicHelp": false,
|
|
20
36
|
"multiple": false,
|
|
21
|
-
"
|
|
37
|
+
"type": "option"
|
|
22
38
|
},
|
|
23
39
|
"defaultFnString": {
|
|
24
40
|
"name": "defaultFnString",
|
|
25
|
-
"
|
|
41
|
+
"default": "async fn default",
|
|
42
|
+
"hasDynamicHelp": false,
|
|
26
43
|
"multiple": false,
|
|
27
|
-
"
|
|
44
|
+
"type": "option"
|
|
28
45
|
}
|
|
29
46
|
},
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
47
|
+
"hasDynamicHelp": false,
|
|
48
|
+
"hiddenAliases": [],
|
|
49
|
+
"id": "cjs2",
|
|
50
|
+
"pluginAlias": "@oclif/plugin-test-cjs-2",
|
|
51
|
+
"pluginName": "@oclif/plugin-test-cjs-2",
|
|
52
|
+
"pluginType": "core",
|
|
53
|
+
"strict": true,
|
|
54
|
+
"enableJsonFlag": true,
|
|
55
|
+
"isESM": false,
|
|
56
|
+
"relativePath": [
|
|
57
|
+
"dist",
|
|
58
|
+
"commands",
|
|
59
|
+
"cjs2.js"
|
|
60
|
+
]
|
|
44
61
|
}
|
|
45
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"version": "0.7.1"
|
|
46
64
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-test-cjs-2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Test CJS plugin",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@oclif/core": "^
|
|
20
|
+
"@oclif/core": "^4",
|
|
21
21
|
"@oclif/plugin-help": "^6",
|
|
22
22
|
"@oclif/plugin-plugins": "^5"
|
|
23
23
|
},
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"@types/mocha": "^10",
|
|
28
28
|
"@types/node": "^16.18.97",
|
|
29
29
|
"chai": "^4",
|
|
30
|
-
"eslint": "^
|
|
31
|
-
"eslint-config-oclif": "^
|
|
32
|
-
"eslint-config-oclif-typescript": "^1.
|
|
30
|
+
"eslint": "^8.57.0",
|
|
31
|
+
"eslint-config-oclif": "^5.2.0",
|
|
32
|
+
"eslint-config-oclif-typescript": "^3.1.7",
|
|
33
33
|
"mocha": "^10",
|
|
34
|
-
"oclif": "^
|
|
34
|
+
"oclif": "^4",
|
|
35
35
|
"shx": "^0.3.4",
|
|
36
36
|
"ts-node": "^10.9.2",
|
|
37
37
|
"tslib": "^2.6.2",
|