@oclif/plugin-test-cjs-1 0.6.36 → 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 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.6.36 linux-x64 node-v20.13.1
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>] [--defaultString
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.6.36/src/commands/cjs1.ts)_
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.
@@ -96,7 +99,7 @@ EXAMPLES
96
99
  $ cjs1 plugins
97
100
  ```
98
101
 
99
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.1.3/src/commands/plugins/index.ts)_
102
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.1/src/commands/plugins/index.ts)_
100
103
 
101
104
  ## `cjs1 plugins add PLUGIN`
102
105
 
@@ -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:inspect PLUGIN...
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.
@@ -170,7 +173,7 @@ EXAMPLES
170
173
  $ cjs1 plugins inspect myplugin
171
174
  ```
172
175
 
173
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.1.3/src/commands/plugins/inspect.ts)_
176
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.1/src/commands/plugins/inspect.ts)_
174
177
 
175
178
  ## `cjs1 plugins install PLUGIN`
176
179
 
@@ -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.
@@ -219,7 +222,7 @@ EXAMPLES
219
222
  $ cjs1 plugins install someuser/someplugin
220
223
  ```
221
224
 
222
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.1.3/src/commands/plugins/install.ts)_
225
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.1/src/commands/plugins/install.ts)_
223
226
 
224
227
  ## `cjs1 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 Show CLI help.
239
+ -h, --help Show CLI help.
237
240
  -v, --verbose
238
- --[no-]install Install dependencies after linking the plugin.
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
  $ cjs1 plugins link myplugin
250
253
  ```
251
254
 
252
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.1.3/src/commands/plugins/link.ts)_
255
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.1/src/commands/plugins/link.ts)_
253
256
 
254
257
  ## `cjs1 plugins remove [PLUGIN]`
255
258
 
@@ -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.
@@ -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.1.3/src/commands/plugins/reset.ts)_
296
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.1/src/commands/plugins/reset.ts)_
294
297
 
295
298
  ## `cjs1 plugins uninstall [PLUGIN]`
296
299
 
@@ -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.
@@ -318,7 +321,7 @@ EXAMPLES
318
321
  $ cjs1 plugins uninstall myplugin
319
322
  ```
320
323
 
321
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.1.3/src/commands/plugins/uninstall.ts)_
324
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.1/src/commands/plugins/uninstall.ts)_
322
325
 
323
326
  ## `cjs1 plugins unlink [PLUGIN]`
324
327
 
@@ -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.
@@ -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.1.3/src/commands/plugins/update.ts)_
368
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.1/src/commands/plugins/update.ts)_
366
369
  <!-- commandsstop -->
@@ -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 {};
@@ -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 () => Promise.resolve('async fn default'),
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
+ };
@@ -1,46 +1,64 @@
1
1
  {
2
- "version": "0.6.36",
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
- "type": "option",
15
- "multiple": false
28
+ "hasDynamicHelp": false,
29
+ "multiple": false,
30
+ "type": "option"
16
31
  },
17
32
  "defaultString": {
18
33
  "name": "defaultString",
19
- "type": "option",
34
+ "default": "simple string default",
35
+ "hasDynamicHelp": false,
20
36
  "multiple": false,
21
- "default": "simple string default"
37
+ "type": "option"
22
38
  },
23
39
  "defaultFnString": {
24
40
  "name": "defaultFnString",
25
- "type": "option",
41
+ "default": "async fn default",
42
+ "hasDynamicHelp": false,
26
43
  "multiple": false,
27
- "default": "async fn default"
44
+ "type": "option"
28
45
  }
29
46
  },
30
- "args": {
31
- "optionalArg": {
32
- "name": "optionalArg"
33
- },
34
- "defaultArg": {
35
- "name": "defaultArg",
36
- "default": "simple string default"
37
- },
38
- "defaultFnArg": {
39
- "name": "defaultFnArg",
40
- "default": "async fn default"
41
- }
42
- },
43
- "enableJsonFlag": true
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.6.36",
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": "^3.26.6",
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": "^7",
31
- "eslint-config-oclif": "^4",
32
- "eslint-config-oclif-typescript": "^1.0.3",
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": "^3.17.2",
34
+ "oclif": "^4",
35
35
  "shx": "^0.3.4",
36
36
  "ts-node": "^10.9.2",
37
37
  "tslib": "^2.6.2",