@oclif/plugin-commands 2.0.2 → 2.1.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/CHANGELOG.md +7 -0
- package/README.md +2 -2
- package/lib/commands/commands.js +2 -4
- package/oclif.manifest.json +1 -1
- package/package.json +3 -4
- package/yarn.lock +1506 -1462
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.1.0](https://github.com/oclif/plugin-commands/compare/v2.0.2...v2.1.0) (2022-01-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* remove cli-ux ([#257](https://github.com/oclif/plugin-commands/issues/257)) ([91d8696](https://github.com/oclif/plugin-commands/commit/91d8696bff375e622092744ab005daabf12c34d2))
|
|
11
|
+
|
|
5
12
|
### [2.0.2](https://github.com/oclif/plugin-commands/compare/v2.0.0...v2.0.2) (2022-01-03)
|
|
6
13
|
|
|
7
14
|
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ $ npm install -g @oclif/plugin-commands
|
|
|
20
20
|
$ oclif-example COMMAND
|
|
21
21
|
running command...
|
|
22
22
|
$ oclif-example (--version)
|
|
23
|
-
@oclif/plugin-commands/2.0
|
|
23
|
+
@oclif/plugin-commands/2.1.0 linux-x64 node-v12.22.9
|
|
24
24
|
$ oclif-example --help [COMMAND]
|
|
25
25
|
USAGE
|
|
26
26
|
$ oclif-example COMMAND
|
|
@@ -60,5 +60,5 @@ DESCRIPTION
|
|
|
60
60
|
list all the commands
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
_See code: [src/commands/commands.ts](https://github.com/oclif/plugin-commands/blob/v2.0
|
|
63
|
+
_See code: [src/commands/commands.ts](https://github.com/oclif/plugin-commands/blob/v2.1.0/src/commands/commands.ts)_
|
|
64
64
|
<!-- commandsstop -->
|
package/lib/commands/commands.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const core_1 = require("@oclif/core");
|
|
4
|
-
const cli_ux_1 = require("cli-ux");
|
|
5
4
|
const _ = require("lodash");
|
|
6
5
|
const os_1 = require("os");
|
|
7
6
|
class Commands extends core_1.Command {
|
|
@@ -36,7 +35,7 @@ class Commands extends core_1.Command {
|
|
|
36
35
|
}));
|
|
37
36
|
return formatted;
|
|
38
37
|
}
|
|
39
|
-
|
|
38
|
+
core_1.CliUx.ux.table(commands.map(command => {
|
|
40
39
|
// Massage some fields so it looks good in the table
|
|
41
40
|
command.description = (command.description || '').split(os_1.EOL)[0];
|
|
42
41
|
command.summary = (command.summary || (command.description || '').split(os_1.EOL)[0]);
|
|
@@ -106,5 +105,4 @@ class Commands extends core_1.Command {
|
|
|
106
105
|
exports.default = Commands;
|
|
107
106
|
Commands.description = 'list all the commands';
|
|
108
107
|
Commands.enableJsonFlag = true;
|
|
109
|
-
|
|
110
|
-
Commands.flags = Object.assign({ help: core_1.Flags.help({ char: 'h' }), hidden: core_1.Flags.boolean({ description: 'show hidden commands' }) }, cli_ux_1.ux.table.flags());
|
|
108
|
+
Commands.flags = Object.assign({ help: core_1.Flags.help({ char: 'h' }), hidden: core_1.Flags.boolean({ description: 'show hidden commands' }) }, core_1.CliUx.ux.table.flags());
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.0
|
|
1
|
+
{"version":"2.1.0","commands":{"commands":{"id":"commands","description":"list all the commands","strict":true,"pluginName":"@oclif/plugin-commands","pluginAlias":"@oclif/plugin-commands","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"help":{"name":"help","type":"boolean","char":"h","description":"Show CLI help.","allowNo":false},"hidden":{"name":"hidden","type":"boolean","description":"show hidden commands","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[],"enableJsonFlag":true}}}
|
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-commands",
|
|
3
3
|
"description": "plugin to show the list of all the commands",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-commands/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@oclif/core": "^1.0
|
|
9
|
-
"cli-ux": "^6.0.5",
|
|
8
|
+
"@oclif/core": "^1.2.0",
|
|
10
9
|
"lodash": "^4.17.11"
|
|
11
10
|
},
|
|
12
11
|
"devDependencies": {
|
|
@@ -25,7 +24,7 @@
|
|
|
25
24
|
"mocha": "^8",
|
|
26
25
|
"nock": "^13.0.0",
|
|
27
26
|
"nyc": "^15.1.0",
|
|
28
|
-
"oclif": "2.
|
|
27
|
+
"oclif": "^2.3.0",
|
|
29
28
|
"shx": "^0.3.3",
|
|
30
29
|
"ts-node": "^9.1.1",
|
|
31
30
|
"tslib": "^2.0.0",
|