@oclif/core 2.0.2-beta.4 → 2.0.2-beta.6
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.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
export default function progress(options?:
|
|
1
|
+
import { Options, SingleBar } from 'cli-progress';
|
|
2
|
+
export default function progress(options?: Options): SingleBar;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
// 3pp
|
|
4
|
-
const
|
|
4
|
+
const cli_progress_1 = require("cli-progress");
|
|
5
5
|
function progress(options = {}) {
|
|
6
6
|
// set noTTYOutput for options
|
|
7
7
|
options.noTTYOutput = Boolean(process.env.TERM === 'dumb' || !process.stdin.isTTY);
|
|
8
|
-
return new
|
|
8
|
+
return new cli_progress_1.SingleBar(options);
|
|
9
9
|
}
|
|
10
10
|
exports.default = progress;
|
package/lib/help/util.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import * as ejs from 'ejs';
|
|
2
1
|
import { Config as IConfig, HelpOptions, Deprecation } from '../interfaces';
|
|
3
2
|
import { HelpBase } from '.';
|
|
4
3
|
interface HelpBaseDerived {
|
|
5
4
|
new (config: IConfig, opts?: Partial<HelpOptions>): HelpBase;
|
|
6
5
|
}
|
|
7
6
|
export declare function loadHelpClass(config: IConfig): Promise<HelpBaseDerived>;
|
|
8
|
-
export declare function template(context:
|
|
7
|
+
export declare function template(context: any): (t: string) => string;
|
|
9
8
|
export declare function toStandardizedId(commandID: string, config: IConfig): string;
|
|
10
9
|
export declare function toConfiguredId(commandID: string, config: IConfig): string;
|
|
11
10
|
export declare function standardizeIDFromArgv(argv: string[], config: IConfig): string[];
|
package/lib/help/util.js
CHANGED
|
@@ -23,6 +23,7 @@ async function loadHelpClass(config) {
|
|
|
23
23
|
return _1.Help;
|
|
24
24
|
}
|
|
25
25
|
exports.loadHelpClass = loadHelpClass;
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
26
27
|
function template(context) {
|
|
27
28
|
function render(t) {
|
|
28
29
|
return ejs.render(t, context);
|
package/lib/parser/parse.js
CHANGED
|
@@ -41,7 +41,6 @@ const readStdin = async () => {
|
|
|
41
41
|
debug('resolved from stdin', result);
|
|
42
42
|
resolve(result);
|
|
43
43
|
});
|
|
44
|
-
// @ts-expect-error because the AbortSignal interface is missing addEventListener
|
|
45
44
|
signal.addEventListener('abort', () => {
|
|
46
45
|
debug('stdin aborted');
|
|
47
46
|
clearTimeout(timeout);
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/core",
|
|
3
3
|
"description": "base library for oclif CLIs",
|
|
4
|
-
"version": "2.0.2-beta.
|
|
4
|
+
"version": "2.0.2-beta.6",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/core/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
+
"@types/cli-progress": "^3.11.0",
|
|
8
9
|
"ansi-escapes": "^4.3.2",
|
|
9
10
|
"ansi-styles": "^4.3.0",
|
|
10
11
|
"cardinal": "^2.1.1",
|
|
@@ -42,14 +43,13 @@
|
|
|
42
43
|
"@types/chai": "^4.3.4",
|
|
43
44
|
"@types/chai-as-promised": "^7.1.5",
|
|
44
45
|
"@types/clean-stack": "^2.1.1",
|
|
45
|
-
"@types/cli-progress": "^3.11.0",
|
|
46
46
|
"@types/ejs": "^3.1.0",
|
|
47
47
|
"@types/fs-extra": "^9.0.13",
|
|
48
48
|
"@types/indent-string": "^4.0.1",
|
|
49
49
|
"@types/js-yaml": "^3.12.7",
|
|
50
50
|
"@types/mocha": "^8.2.3",
|
|
51
51
|
"@types/nock": "^11.1.0",
|
|
52
|
-
"@types/node": "^
|
|
52
|
+
"@types/node": "^16",
|
|
53
53
|
"@types/node-notifier": "^8.0.2",
|
|
54
54
|
"@types/proxyquire": "^1.3.28",
|
|
55
55
|
"@types/semver": "^7.3.13",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"eslint": "^7.32.0",
|
|
65
65
|
"eslint-config-oclif": "^4.0.0",
|
|
66
66
|
"eslint-config-oclif-typescript": "^1.0.2",
|
|
67
|
-
"fancy-test": "^
|
|
67
|
+
"fancy-test": "^2.0.12",
|
|
68
68
|
"globby": "^11.1.0",
|
|
69
69
|
"husky": "6",
|
|
70
70
|
"mocha": "^8.4.0",
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"lint": "eslint . --ext .ts --config .eslintrc",
|
|
110
110
|
"posttest": "yarn lint",
|
|
111
111
|
"prepack": "yarn run build",
|
|
112
|
-
"test": "mocha \"test/**/*.test.ts\"",
|
|
112
|
+
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
113
113
|
"test:e2e": "mocha \"test/**/*.e2e.ts\" --timeout 1200000",
|
|
114
114
|
"pretest": "yarn build --noEmit && tsc -p test --noEmit --skipLibCheck"
|
|
115
115
|
},
|