@oclif/core 3.22.0 → 3.23.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/lib/cli-ux/action/base.d.ts +3 -0
- package/lib/cli-ux/action/base.js +3 -0
- package/lib/cli-ux/config.d.ts +6 -0
- package/lib/cli-ux/config.js +6 -0
- package/lib/cli-ux/index.d.ts +93 -1
- package/lib/cli-ux/prompt.d.ts +3 -0
- package/lib/cli-ux/styled/table.js +3 -0
- package/lib/cli-ux/write.d.ts +3 -0
- package/lib/cli-ux/write.js +3 -0
- package/package.json +1 -1
|
@@ -5,6 +5,9 @@ export interface ITask {
|
|
|
5
5
|
status: string | undefined;
|
|
6
6
|
}
|
|
7
7
|
export type ActionType = 'debug' | 'simple' | 'spinner';
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
10
|
+
*/
|
|
8
11
|
export declare class ActionBase {
|
|
9
12
|
std: 'stderr' | 'stdout';
|
|
10
13
|
protected stdmocks?: ['stderr' | 'stdout', string[]][];
|
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ActionBase = void 0;
|
|
4
4
|
const node_util_1 = require("node:util");
|
|
5
5
|
const util_1 = require("../../util/util");
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
8
|
+
*/
|
|
6
9
|
class ActionBase {
|
|
7
10
|
std = 'stderr';
|
|
8
11
|
stdmocks;
|
package/lib/cli-ux/config.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export interface ConfigMessage {
|
|
|
5
5
|
type: 'config';
|
|
6
6
|
value: any;
|
|
7
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
10
|
+
*/
|
|
8
11
|
export declare class Config {
|
|
9
12
|
action: ActionBase;
|
|
10
13
|
errorsHandled: boolean;
|
|
@@ -15,5 +18,8 @@ export declare class Config {
|
|
|
15
18
|
get debug(): boolean;
|
|
16
19
|
set debug(v: boolean);
|
|
17
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
23
|
+
*/
|
|
18
24
|
export declare const config: Config;
|
|
19
25
|
export default config;
|
package/lib/cli-ux/config.js
CHANGED
|
@@ -15,6 +15,9 @@ const actionType = (Boolean(process.stderr.isTTY) &&
|
|
|
15
15
|
'spinner') ||
|
|
16
16
|
'simple';
|
|
17
17
|
const Action = actionType === 'spinner' ? spinner_1.default : simple_1.default;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
20
|
+
*/
|
|
18
21
|
class Config {
|
|
19
22
|
action = new Action();
|
|
20
23
|
errorsHandled = false;
|
|
@@ -42,5 +45,8 @@ function fetch() {
|
|
|
42
45
|
globals[major] = new Config();
|
|
43
46
|
return globals[major];
|
|
44
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
50
|
+
*/
|
|
45
51
|
exports.config = fetch();
|
|
46
52
|
exports.default = exports.config;
|
package/lib/cli-ux/index.d.ts
CHANGED
|
@@ -31,7 +31,99 @@ export declare class ux {
|
|
|
31
31
|
}
|
|
32
32
|
declare const action: ActionBase, annotation: typeof ux.annotation, anykey: typeof uxPrompt.anykey, confirm: typeof uxPrompt.confirm, debug: typeof ux.debug, done: typeof ux.done, flush: typeof ux.flush, info: typeof ux.info, log: typeof ux.log, logToStderr: typeof ux.logToStderr, progress: typeof styled.progress, prompt: typeof uxPrompt.prompt, styledHeader: typeof ux.styledHeader, styledJSON: typeof ux.styledJSON, styledObject: typeof ux.styledObject, table: typeof styled.Table.table, trace: typeof ux.trace, tree: typeof styled.tree, url: typeof ux.url, wait: (ms?: number) => Promise<void>;
|
|
33
33
|
declare const error: typeof Errors.error, exit: typeof Errors.exit, warn: typeof Errors.warn;
|
|
34
|
-
export {
|
|
34
|
+
export {
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
37
|
+
*/
|
|
38
|
+
action,
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
41
|
+
*/
|
|
42
|
+
annotation,
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
45
|
+
*/
|
|
46
|
+
anykey,
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
49
|
+
*/
|
|
50
|
+
confirm,
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
53
|
+
*/
|
|
54
|
+
debug,
|
|
55
|
+
/**
|
|
56
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
57
|
+
*/
|
|
58
|
+
done,
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
61
|
+
*/
|
|
62
|
+
error,
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
65
|
+
*/
|
|
66
|
+
exit,
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
69
|
+
*/
|
|
70
|
+
flush,
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
73
|
+
*/
|
|
74
|
+
info,
|
|
75
|
+
/**
|
|
76
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
77
|
+
*/
|
|
78
|
+
log,
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
81
|
+
*/
|
|
82
|
+
logToStderr,
|
|
83
|
+
/**
|
|
84
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
85
|
+
*/
|
|
86
|
+
progress,
|
|
87
|
+
/**
|
|
88
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
89
|
+
*/
|
|
90
|
+
prompt,
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
93
|
+
*/
|
|
94
|
+
styledHeader,
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
97
|
+
*/
|
|
98
|
+
styledJSON,
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
101
|
+
*/
|
|
102
|
+
styledObject,
|
|
103
|
+
/**
|
|
104
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
105
|
+
*/
|
|
106
|
+
table,
|
|
107
|
+
/**
|
|
108
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
109
|
+
*/
|
|
110
|
+
trace,
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
113
|
+
*/
|
|
114
|
+
tree,
|
|
115
|
+
/**
|
|
116
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
117
|
+
*/
|
|
118
|
+
url,
|
|
119
|
+
/**
|
|
120
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
121
|
+
*/
|
|
122
|
+
wait,
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
125
|
+
*/
|
|
126
|
+
warn, };
|
|
35
127
|
export { ActionBase } from './action/base';
|
|
36
128
|
export { Config, config } from './config';
|
|
37
129
|
export { ExitError } from './exit';
|
package/lib/cli-ux/prompt.d.ts
CHANGED
|
@@ -37,6 +37,9 @@ const F = __importStar(require("../../flags"));
|
|
|
37
37
|
const screen_1 = require("../../screen");
|
|
38
38
|
const util_1 = require("../../util/util");
|
|
39
39
|
const write_1 = __importDefault(require("../write"));
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated `ux` will be removed in the next major. See https://github.com/oclif/core/discussions/999
|
|
42
|
+
*/
|
|
40
43
|
class Table {
|
|
41
44
|
data;
|
|
42
45
|
columns;
|
package/lib/cli-ux/write.d.ts
CHANGED
package/lib/cli-ux/write.js
CHANGED