@oclif/plugin-test-cjs-1 0.6.37 → 0.7.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/README.md +23 -20
- package/dist/commands/cjs1.d.ts +5 -5
- package/dist/commands/cjs1.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-1
|
|
|
18
18
|
$ cjs1 COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ cjs1 (--version)
|
|
21
|
-
@oclif/plugin-test-cjs-1/0.
|
|
21
|
+
@oclif/plugin-test-cjs-1/0.7.0 linux-x64 node-v20.13.1
|
|
22
22
|
$ cjs1 --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ cjs1 COMMAND
|
|
@@ -44,16 +44,19 @@ USAGE
|
|
|
44
44
|
|
|
45
45
|
```
|
|
46
46
|
USAGE
|
|
47
|
-
$ cjs1 cjs1 [OPTIONALARG] [DEFAULTARG] [DEFAULTFNARG] [--optionalString <value>]
|
|
48
|
-
<value>] [--defaultFnString <value>]
|
|
47
|
+
$ cjs1 cjs1 [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/cjs1.ts](https://github.com/oclif/plugin-test-cjs-1/blob/v0.
|
|
59
|
+
_See code: [src/commands/cjs1.ts](https://github.com/oclif/plugin-test-cjs-1/blob/v0.7.0/src/commands/cjs1.ts)_
|
|
57
60
|
|
|
58
61
|
## `cjs1 help [COMMAND]`
|
|
59
62
|
|
|
@@ -61,10 +64,10 @@ Display help for cjs1.
|
|
|
61
64
|
|
|
62
65
|
```
|
|
63
66
|
USAGE
|
|
64
|
-
$ cjs1 help [COMMAND] [-n]
|
|
67
|
+
$ cjs1 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.
|
|
@@ -104,10 +107,10 @@ Installs a plugin into cjs1.
|
|
|
104
107
|
|
|
105
108
|
```
|
|
106
109
|
USAGE
|
|
107
|
-
$ cjs1 plugins add PLUGIN [--json] [-f] [-h] [-s | -v]
|
|
110
|
+
$ cjs1 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.
|
|
@@ -151,10 +154,10 @@ Displays installation properties of a plugin.
|
|
|
151
154
|
|
|
152
155
|
```
|
|
153
156
|
USAGE
|
|
154
|
-
$ cjs1 plugins
|
|
157
|
+
$ cjs1 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.
|
|
@@ -178,10 +181,10 @@ Installs a plugin into cjs1.
|
|
|
178
181
|
|
|
179
182
|
```
|
|
180
183
|
USAGE
|
|
181
|
-
$ cjs1 plugins install PLUGIN [--json] [-f] [-h] [-s | -v]
|
|
184
|
+
$ cjs1 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.
|
|
@@ -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.
|
|
@@ -257,10 +260,10 @@ Removes a plugin from the CLI.
|
|
|
257
260
|
|
|
258
261
|
```
|
|
259
262
|
USAGE
|
|
260
|
-
$ cjs1 plugins remove [PLUGIN] [-h] [-v]
|
|
263
|
+
$ cjs1 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.
|
|
@@ -298,10 +301,10 @@ Removes a plugin from the CLI.
|
|
|
298
301
|
|
|
299
302
|
```
|
|
300
303
|
USAGE
|
|
301
|
-
$ cjs1 plugins uninstall [PLUGIN] [-h] [-v]
|
|
304
|
+
$ cjs1 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.
|
|
@@ -326,10 +329,10 @@ Removes a plugin from the CLI.
|
|
|
326
329
|
|
|
327
330
|
```
|
|
328
331
|
USAGE
|
|
329
|
-
$ cjs1 plugins unlink [PLUGIN] [-h] [-v]
|
|
332
|
+
$ cjs1 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.
|
package/dist/commands/cjs1.d.ts
CHANGED
|
@@ -4,17 +4,17 @@ type Result = {
|
|
|
4
4
|
flags: Interfaces.InferredFlags<typeof CJS1.flags>;
|
|
5
5
|
};
|
|
6
6
|
export default class CJS1 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/cjs1.js
CHANGED
|
@@ -11,22 +11,22 @@ class CJS1 extends core_1.Command {
|
|
|
11
11
|
}
|
|
12
12
|
exports.default = CJS1;
|
|
13
13
|
_a = CJS1;
|
|
14
|
-
CJS1.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
|
CJS1.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
|
CJS1.enableJsonFlag = true;
|
|
24
|
+
CJS1.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
|
"cjs1": {
|
|
5
|
-
"id": "cjs1",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"pluginName": "@oclif/plugin-test-cjs-1",
|
|
8
|
-
"pluginAlias": "@oclif/plugin-test-cjs-1",
|
|
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": "cjs1",
|
|
50
|
+
"pluginAlias": "@oclif/plugin-test-cjs-1",
|
|
51
|
+
"pluginName": "@oclif/plugin-test-cjs-1",
|
|
52
|
+
"pluginType": "core",
|
|
53
|
+
"strict": true,
|
|
54
|
+
"enableJsonFlag": true,
|
|
55
|
+
"isESM": false,
|
|
56
|
+
"relativePath": [
|
|
57
|
+
"dist",
|
|
58
|
+
"commands",
|
|
59
|
+
"cjs1.js"
|
|
60
|
+
]
|
|
44
61
|
}
|
|
45
|
-
}
|
|
62
|
+
},
|
|
63
|
+
"version": "0.7.0"
|
|
46
64
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-test-cjs-1",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
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",
|