@microsoft/teamsfx-api 0.22.4-alpha.2f75fb932.0 → 0.22.4-alpha.3770ad79d.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/build/cli.d.ts +134 -7
- package/build/cli.d.ts.map +1 -1
- package/build/qm/question.d.ts +38 -24
- package/build/qm/question.d.ts.map +1 -1
- package/build/qm/question.js.map +1 -1
- package/build/types.d.ts +1 -1
- package/build/utils/log.d.ts +23 -36
- package/build/utils/log.d.ts.map +1 -1
- package/build/utils/log.js +7 -11
- package/build/utils/log.js.map +1 -1
- package/package.json +3 -3
package/build/cli.d.ts
CHANGED
|
@@ -3,65 +3,192 @@ import { FxError } from "./error";
|
|
|
3
3
|
export declare type OptionValue = string | boolean | string[] | undefined;
|
|
4
4
|
export declare type CLIOptionType = "boolean" | "string" | "array";
|
|
5
5
|
export interface CLICommand {
|
|
6
|
+
/**
|
|
7
|
+
* @description command name, only meaningful to its parent command, like "sample"
|
|
8
|
+
*/
|
|
6
9
|
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* @description command full name, like "teamsfx new sample", only available after command finding
|
|
12
|
+
*/
|
|
7
13
|
fullName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @description CLI version, only necessary for the root command
|
|
16
|
+
*/
|
|
8
17
|
version?: string;
|
|
18
|
+
/**
|
|
19
|
+
* @description command description
|
|
20
|
+
*/
|
|
9
21
|
description: string;
|
|
22
|
+
/**
|
|
23
|
+
* @description command argument, for example, "teamsfx new sample <sample-name>": sample-name is an argument, which is positional
|
|
24
|
+
*/
|
|
10
25
|
arguments?: CLICommandArgument[];
|
|
26
|
+
/**
|
|
27
|
+
* @description command options, followed by "--" or "-" char, for example, "teamsfx new sample --option1 value1 --option2 value2"
|
|
28
|
+
*/
|
|
29
|
+
options?: CLICommandOption[];
|
|
30
|
+
/**
|
|
31
|
+
* @description whether to sort options in "--help"
|
|
32
|
+
*/
|
|
11
33
|
sortOptions?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* @description sub commands, CLI commands are organized in a tree structure, commands can have sub commands
|
|
36
|
+
*/
|
|
37
|
+
commands?: CLICommand[];
|
|
38
|
+
/**
|
|
39
|
+
* @description whether to sort sub commands in "--help"
|
|
40
|
+
*/
|
|
12
41
|
sortCommands?: boolean;
|
|
13
|
-
|
|
42
|
+
/**
|
|
43
|
+
* @description examples of how to use this command
|
|
44
|
+
*/
|
|
14
45
|
examples?: CLIExample[];
|
|
15
|
-
|
|
16
|
-
|
|
46
|
+
/**
|
|
47
|
+
* @description command handler
|
|
48
|
+
*/
|
|
49
|
+
handler?: (ctx: CLIContext) => Promise<Result<undefined, FxError>>;
|
|
50
|
+
/**
|
|
51
|
+
* @description telemetry will be sent when available
|
|
52
|
+
*/
|
|
17
53
|
telemetry?: {
|
|
18
54
|
event: string;
|
|
19
55
|
};
|
|
56
|
+
/**
|
|
57
|
+
* @description header message will be printed on the top in "--help"
|
|
58
|
+
*/
|
|
20
59
|
header?: string;
|
|
60
|
+
/**
|
|
61
|
+
* @description footer message will be printed on the bottom in "--help"
|
|
62
|
+
*/
|
|
21
63
|
footer?: string;
|
|
64
|
+
/**
|
|
65
|
+
* @description whether to hide this command in "--help"
|
|
66
|
+
*/
|
|
22
67
|
hidden?: boolean;
|
|
23
68
|
}
|
|
69
|
+
export interface CLIFoundCommand extends CLICommand {
|
|
70
|
+
fullName: string;
|
|
71
|
+
}
|
|
24
72
|
export interface CLIContext {
|
|
25
|
-
|
|
73
|
+
/**
|
|
74
|
+
* @description the command matched
|
|
75
|
+
*/
|
|
76
|
+
command: CLIFoundCommand;
|
|
77
|
+
/**
|
|
78
|
+
* @description parsed option values
|
|
79
|
+
*/
|
|
26
80
|
optionValues: Record<string, OptionValue>;
|
|
81
|
+
/**
|
|
82
|
+
* @description parsed global option values, global options are options defined by the root command in the command tree.
|
|
83
|
+
*/
|
|
27
84
|
globalOptionValues: Record<string, OptionValue>;
|
|
85
|
+
/**
|
|
86
|
+
* @description parsed argument values
|
|
87
|
+
*/
|
|
28
88
|
argumentValues: string[];
|
|
89
|
+
/**
|
|
90
|
+
* @description telemetry properties, which cen be accessed in the process of command execution lifecycle
|
|
91
|
+
*/
|
|
29
92
|
telemetryProperties: Record<string, string>;
|
|
30
93
|
}
|
|
31
94
|
interface CLICommandOptionBase {
|
|
32
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* @description option/argument name
|
|
97
|
+
* */
|
|
33
98
|
name: string;
|
|
34
|
-
/**
|
|
99
|
+
/**
|
|
100
|
+
* @description when converting option key-value into @Inputs for FxCore,
|
|
101
|
+
* the key will be used as the property name if defined, otherwise the name will be used
|
|
102
|
+
*/
|
|
35
103
|
questionName?: string;
|
|
104
|
+
/**
|
|
105
|
+
* @description option/argument description
|
|
106
|
+
*/
|
|
36
107
|
description: string;
|
|
108
|
+
/**
|
|
109
|
+
* @description option/argument abbreviation
|
|
110
|
+
*/
|
|
37
111
|
shortName?: string;
|
|
112
|
+
/**
|
|
113
|
+
* @description option/argument value type: boolean, text, array
|
|
114
|
+
*/
|
|
38
115
|
type: CLIOptionType;
|
|
116
|
+
/**
|
|
117
|
+
* @description whether this option/argument is required
|
|
118
|
+
*/
|
|
39
119
|
required?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* @description whether this option/argument is hidden in "--help"
|
|
122
|
+
*/
|
|
40
123
|
hidden?: boolean;
|
|
41
124
|
}
|
|
42
125
|
export interface CLIBooleanOption extends CLICommandOptionBase {
|
|
43
126
|
type: "boolean";
|
|
127
|
+
/**
|
|
128
|
+
* @description default value
|
|
129
|
+
*/
|
|
44
130
|
default?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* @description parsed input value
|
|
133
|
+
*/
|
|
45
134
|
value?: boolean;
|
|
46
135
|
}
|
|
47
136
|
export interface CLIStringOption extends CLICommandOptionBase {
|
|
48
137
|
type: "string";
|
|
138
|
+
/**
|
|
139
|
+
* @description default value
|
|
140
|
+
*/
|
|
49
141
|
default?: string;
|
|
142
|
+
/**
|
|
143
|
+
* @description parsed input value
|
|
144
|
+
*/
|
|
50
145
|
value?: string;
|
|
146
|
+
/**
|
|
147
|
+
* allowed values
|
|
148
|
+
*/
|
|
51
149
|
choices?: string[];
|
|
150
|
+
/**
|
|
151
|
+
* @description whether to skip validation against allowed values defined in choices
|
|
152
|
+
*/
|
|
153
|
+
skipValidation?: boolean;
|
|
154
|
+
/**
|
|
155
|
+
* @description command to get choice list
|
|
156
|
+
*/
|
|
52
157
|
choiceListCommand?: string;
|
|
53
158
|
}
|
|
54
159
|
export interface CLIArrayOption extends CLICommandOptionBase {
|
|
55
160
|
type: "array";
|
|
161
|
+
/**
|
|
162
|
+
* @description default value
|
|
163
|
+
*/
|
|
56
164
|
default?: string[];
|
|
165
|
+
/**
|
|
166
|
+
* @description parsed input value
|
|
167
|
+
*/
|
|
168
|
+
value?: string[];
|
|
169
|
+
/**
|
|
170
|
+
* allowed values
|
|
171
|
+
*/
|
|
57
172
|
choices?: string[];
|
|
173
|
+
/**
|
|
174
|
+
* @description whether to skip validation against allowed values defined in choices
|
|
175
|
+
*/
|
|
176
|
+
skipValidation?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* @description command to get choice list
|
|
179
|
+
*/
|
|
58
180
|
choiceListCommand?: string;
|
|
59
|
-
value?: string[];
|
|
60
181
|
}
|
|
61
182
|
export declare type CLICommandOption = CLIBooleanOption | CLIStringOption | CLIArrayOption;
|
|
62
183
|
export declare type CLICommandArgument = CLICommandOption;
|
|
63
184
|
export interface CLIExample {
|
|
185
|
+
/**
|
|
186
|
+
* @description example command
|
|
187
|
+
*/
|
|
64
188
|
command: string;
|
|
189
|
+
/**
|
|
190
|
+
* @description description of the sample command
|
|
191
|
+
*/
|
|
65
192
|
description: string;
|
|
66
193
|
}
|
|
67
194
|
export {};
|
package/build/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"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,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,eAAgB,SAAQ,oBAAoB;IAC3D,IAAI,EAAE,QAAQ,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAe,SAAQ,oBAAoB;IAC1D,IAAI,EAAE,OAAO,CAAC;IACd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,oBAAY,gBAAgB,GAAG,gBAAgB,GAAG,eAAe,GAAG,cAAc,CAAC;AAEnF,oBAAY,kBAAkB,GAAG,gBAAgB,CAAC;AAElD,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/build/qm/question.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Inputs, OptionItem } from "../types";
|
|
2
|
-
import { InputTextConfig } from "./ui";
|
|
3
2
|
import { ConditionFunc, FuncValidation, StringArrayValidation, StringValidation, ValidationSchema } from "./validation";
|
|
4
3
|
export interface FunctionRouter {
|
|
5
4
|
namespace: string;
|
|
@@ -131,6 +130,10 @@ export interface UserInputQuestion extends BaseQuestion {
|
|
|
131
130
|
*/
|
|
132
131
|
cliType?: "option" | "argument";
|
|
133
132
|
cliDescription?: string;
|
|
133
|
+
/**
|
|
134
|
+
* @description the question will converted to a hidden option in CLI
|
|
135
|
+
*/
|
|
136
|
+
cliHidden?: boolean;
|
|
134
137
|
}
|
|
135
138
|
/**
|
|
136
139
|
* Definition of single selection question
|
|
@@ -169,6 +172,10 @@ export interface SingleSelectQuestion extends UserInputQuestion {
|
|
|
169
172
|
* the command is only for CLI option description
|
|
170
173
|
*/
|
|
171
174
|
cliChoiceListCommand?: string;
|
|
175
|
+
/**
|
|
176
|
+
* whether to skip validation against allowed list in non-interactive mode, default false
|
|
177
|
+
*/
|
|
178
|
+
skipValidation?: boolean;
|
|
172
179
|
}
|
|
173
180
|
/**
|
|
174
181
|
* Definition of multiple selection question
|
|
@@ -218,6 +225,10 @@ export interface MultiSelectQuestion extends UserInputQuestion {
|
|
|
218
225
|
* the command is only for CLI option description
|
|
219
226
|
*/
|
|
220
227
|
cliChoiceListCommand?: string;
|
|
228
|
+
/**
|
|
229
|
+
* whether to skip validation against allowed list in non-interactive mode, default false
|
|
230
|
+
*/
|
|
231
|
+
skipValidation?: boolean;
|
|
221
232
|
}
|
|
222
233
|
/**
|
|
223
234
|
* Definition of text input question
|
|
@@ -308,17 +319,6 @@ export interface FolderQuestion extends UserInputQuestion {
|
|
|
308
319
|
*/
|
|
309
320
|
validation?: FuncValidation<string>;
|
|
310
321
|
}
|
|
311
|
-
/**
|
|
312
|
-
* `FuncQuestion` will not show any UI, but load some dynamic data in the question flow;
|
|
313
|
-
* The dynamic data can be referred by the following question.
|
|
314
|
-
*/
|
|
315
|
-
export interface FuncQuestion extends BaseQuestion {
|
|
316
|
-
type: "func";
|
|
317
|
-
/**
|
|
318
|
-
* A function that will be called to when the question is activated.
|
|
319
|
-
*/
|
|
320
|
-
func: LocalFunc<any>;
|
|
321
|
-
}
|
|
322
322
|
export interface SingleFileOrInputQuestion extends UserInputQuestion {
|
|
323
323
|
type: "singleFileOrText";
|
|
324
324
|
/**
|
|
@@ -328,7 +328,7 @@ export interface SingleFileOrInputQuestion extends UserInputQuestion {
|
|
|
328
328
|
/**
|
|
329
329
|
* Config for the input box.
|
|
330
330
|
*/
|
|
331
|
-
inputBoxConfig:
|
|
331
|
+
inputBoxConfig: TextInputQuestion;
|
|
332
332
|
/**
|
|
333
333
|
* This will only take effect in VSC.
|
|
334
334
|
* A set of file filters that are used by the dialog. Each entry is a human-readable label,
|
|
@@ -351,7 +351,7 @@ export interface Group {
|
|
|
351
351
|
type: "group";
|
|
352
352
|
name?: string;
|
|
353
353
|
}
|
|
354
|
-
export declare type Question = SingleSelectQuestion | MultiSelectQuestion | TextInputQuestion | SingleFileQuestion | MultiFileQuestion | FolderQuestion |
|
|
354
|
+
export declare type Question = SingleSelectQuestion | MultiSelectQuestion | TextInputQuestion | SingleFileQuestion | MultiFileQuestion | FolderQuestion | SingleFileQuestion | SingleFileOrInputQuestion;
|
|
355
355
|
/**
|
|
356
356
|
* QTreeNode is the tree node data structure, which have three main properties:
|
|
357
357
|
* - data: data is either a group or question. Questions can be organized into a group, which has the same trigger condition.
|
|
@@ -363,12 +363,19 @@ export declare class QTreeNode implements IQTreeNode {
|
|
|
363
363
|
condition?: StringValidation | StringArrayValidation | ConditionFunc;
|
|
364
364
|
children?: QTreeNode[];
|
|
365
365
|
/**
|
|
366
|
-
* @description the question
|
|
367
|
-
* "self" - only
|
|
368
|
-
* "children" -
|
|
369
|
-
* "all" -
|
|
366
|
+
* @description the question node will be ignored as CLI option in non-interactive mode
|
|
367
|
+
* "self" - only ignore the question itself
|
|
368
|
+
* "children" - ignore all nodes in sub-tree
|
|
369
|
+
* "all" - ignore self and all nodes in sub-tree
|
|
370
370
|
*/
|
|
371
|
-
|
|
371
|
+
cliOptionDisabled?: "self" | "children" | "all";
|
|
372
|
+
/**
|
|
373
|
+
* @description the question node will be ignored as an Inputs property
|
|
374
|
+
* "self" - only ignore the question itself
|
|
375
|
+
* "children" - ignore all nodes in sub-tree
|
|
376
|
+
* "all" - ignore self and all nodes in sub-tree
|
|
377
|
+
*/
|
|
378
|
+
inputsDisabled?: "self" | "children" | "all";
|
|
372
379
|
addChild(node: QTreeNode): QTreeNode;
|
|
373
380
|
validate(): boolean;
|
|
374
381
|
/**
|
|
@@ -382,11 +389,18 @@ export interface IQTreeNode {
|
|
|
382
389
|
condition?: StringValidation | StringArrayValidation | ConditionFunc;
|
|
383
390
|
children?: IQTreeNode[];
|
|
384
391
|
/**
|
|
385
|
-
* @description the question
|
|
386
|
-
* "self" - only
|
|
387
|
-
* "children" -
|
|
388
|
-
* "all" -
|
|
392
|
+
* @description the question node will be ignored as CLI option in non-interactive mode
|
|
393
|
+
* "self" - only ignore the question itself
|
|
394
|
+
* "children" - ignore all nodes in sub-tree
|
|
395
|
+
* "all" - ignore self and all nodes in sub-tree
|
|
396
|
+
*/
|
|
397
|
+
cliOptionDisabled?: "self" | "children" | "all";
|
|
398
|
+
/**
|
|
399
|
+
* @description the question node will be ignored as an Inputs property
|
|
400
|
+
* "self" - only ignore the question itself
|
|
401
|
+
* "children" - ignore all nodes in sub-tree
|
|
402
|
+
* "all" - ignore self and all nodes in sub-tree
|
|
389
403
|
*/
|
|
390
|
-
|
|
404
|
+
inputsDisabled?: "self" | "children" | "all";
|
|
391
405
|
}
|
|
392
406
|
//# sourceMappingURL=question.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../src/qm/question.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../src/qm/question.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,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,GAAG,KAAK,CAAC;IACvB,SAAS,CAAC,EAAE,gBAAgB,GAAG,qBAAqB,GAAG,aAAa,CAAC;IACrE,QAAQ,CAAC,EAAE,UAAU,EAAE,CAAC;IACxB;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC;IAChD;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,KAAK,CAAC;CAC9C"}
|
package/build/qm/question.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/qm/question.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;
|
|
1
|
+
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/qm/question.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AA0alC;;;;;GAKG;AACH,MAAa,SAAS;IAyDpB,YAAY,IAAsB;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;IAzCD,QAAQ,CAAC,IAAe;QACtB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YAClB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;SACpB;QACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACzB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,QAAQ;QACN,kCAAkC;QAClC,iCAAiC;QACjC,+BAA+B;QAC/B,yGAAyG;QACzG,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,IAAI;QACF,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,MAAM,WAAW,GAAgB,EAAE,CAAC;YACpC,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE;gBAChC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;gBAC5B,IAAI,OAAO;oBAAE,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;aACxC;YACD,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAC;SAC7B;QACD,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;YAC9B,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAO,SAAS,CAAC;YACnE,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC9B,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAC/B,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,CAAC,EAAE;oBACxC,KAAK,CAAC,SAAS,KAAf,KAAK,CAAC,SAAS,GAAK,IAAI,CAAC,SAAS,EAAC;oBACnC,OAAO,KAAK,CAAC;iBACd;aACF;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CAIF;AA5DD,8BA4DC"}
|
package/build/types.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface OptionItem {
|
|
|
25
25
|
*/
|
|
26
26
|
data?: unknown;
|
|
27
27
|
/**
|
|
28
|
-
* CLI display name. CLI will use `cliName` as display name, and use `id` instead if `cliName` is undefined.
|
|
28
|
+
* @deprecated CLI display name. CLI will use `cliName` as display name, and use `id` instead if `cliName` is undefined.
|
|
29
29
|
*/
|
|
30
30
|
cliName?: string;
|
|
31
31
|
/**
|
package/build/utils/log.d.ts
CHANGED
|
@@ -1,74 +1,61 @@
|
|
|
1
1
|
export declare enum LogLevel {
|
|
2
|
-
/**
|
|
3
|
-
* Contain the most detailed messages.
|
|
4
|
-
*/
|
|
5
|
-
Trace = 0,
|
|
6
2
|
/**
|
|
7
3
|
* For debugging and development.
|
|
8
4
|
*/
|
|
9
5
|
Debug = 1,
|
|
6
|
+
/**
|
|
7
|
+
* Contain the most detailed messages.
|
|
8
|
+
*/
|
|
9
|
+
Verbose = 2,
|
|
10
10
|
/**
|
|
11
11
|
* Tracks the general flow of the app. May have long-term value.
|
|
12
12
|
*/
|
|
13
|
-
Info =
|
|
13
|
+
Info = 3,
|
|
14
14
|
/**
|
|
15
15
|
* For abnormal or unexpected events. Typically includes errors or conditions that don't cause the app to fail.
|
|
16
16
|
*/
|
|
17
|
-
Warning =
|
|
17
|
+
Warning = 4,
|
|
18
18
|
/**
|
|
19
19
|
* For errors and exceptions that cannot be handled. These messages indicate a failure in the current operation or request, not an app-wide failure.
|
|
20
20
|
*/
|
|
21
|
-
Error =
|
|
22
|
-
/**
|
|
23
|
-
* For failures that require immediate attention. Examples: data loss scenarios.
|
|
24
|
-
*/
|
|
25
|
-
Fatal = 5
|
|
21
|
+
Error = 5
|
|
26
22
|
}
|
|
27
23
|
export interface LogProvider {
|
|
28
24
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @param logLevel Defines logging severity levels.
|
|
31
|
-
* @param message Information of log event
|
|
25
|
+
* log by level
|
|
32
26
|
*/
|
|
33
|
-
log(logLevel: LogLevel, message: string):
|
|
27
|
+
log(logLevel: LogLevel, message: string): void;
|
|
34
28
|
/**
|
|
35
|
-
*
|
|
36
|
-
* @param message Information of log event
|
|
29
|
+
* diagnostic information used by user
|
|
37
30
|
*/
|
|
38
|
-
|
|
31
|
+
verbose(message: string): void;
|
|
39
32
|
/**
|
|
40
|
-
*
|
|
41
|
-
* @param message Information of log event
|
|
33
|
+
* debug information used internally
|
|
42
34
|
*/
|
|
43
|
-
debug(message: string):
|
|
35
|
+
debug(message: string): void;
|
|
44
36
|
/**
|
|
45
|
-
*
|
|
46
|
-
* @param message Information of log event
|
|
37
|
+
* normal output information
|
|
47
38
|
*/
|
|
48
|
-
info(message: string
|
|
39
|
+
info(message: string): void;
|
|
49
40
|
/**
|
|
50
|
-
*
|
|
51
|
-
* @param message Information of log event
|
|
41
|
+
* normal output information, colored version
|
|
52
42
|
*/
|
|
53
43
|
info(message: Array<{
|
|
54
44
|
content: string;
|
|
55
45
|
color: Colors;
|
|
56
|
-
}
|
|
46
|
+
}>): void;
|
|
57
47
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @param message Information of log event
|
|
48
|
+
* warning information
|
|
60
49
|
*/
|
|
61
|
-
warning(message: string
|
|
50
|
+
warning(message: string): void;
|
|
62
51
|
/**
|
|
63
|
-
*
|
|
64
|
-
* @param message Information of log event
|
|
52
|
+
* error information
|
|
65
53
|
*/
|
|
66
|
-
error(message: string
|
|
54
|
+
error(message: string): void;
|
|
67
55
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @param message Information of log event
|
|
56
|
+
* log content into file
|
|
70
57
|
*/
|
|
71
|
-
|
|
58
|
+
logInFile(logLevel: LogLevel, message: string): Promise<void>;
|
|
72
59
|
/**
|
|
73
60
|
* Get log file path
|
|
74
61
|
*/
|
package/build/utils/log.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/utils/log.ts"],"names":[],"mappings":"AAIA,oBAAY,QAAQ;IAClB;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../src/utils/log.ts"],"names":[],"mappings":"AAIA,oBAAY,QAAQ;IAClB;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,IAAI,IAAI;IACR;;OAEG;IACH,OAAO,IAAI;IACX;;OAEG;IACH,KAAK,IAAI;CACV;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/C;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B;;OAEG;IACH,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAE/D;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D;;OAEG;IACH,cAAc,IAAI,MAAM,CAAC;CAC1B;AAED;;GAEG;AACH,oBAAY,MAAM;IAChB;;OAEG;IACH,YAAY,IAAI;IAChB;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,cAAc,IAAI;IAClB;;OAEG;IACH,YAAY,IAAI;IAChB;;OAEG;IACH,aAAa,IAAI;IACjB;;OAEG;IACH,UAAU,IAAI;IACd;;OAEG;IACH,WAAW,IAAI;CAChB"}
|
package/build/utils/log.js
CHANGED
|
@@ -5,30 +5,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.Colors = exports.LogLevel = void 0;
|
|
6
6
|
var LogLevel;
|
|
7
7
|
(function (LogLevel) {
|
|
8
|
-
/**
|
|
9
|
-
* Contain the most detailed messages.
|
|
10
|
-
*/
|
|
11
|
-
LogLevel[LogLevel["Trace"] = 0] = "Trace";
|
|
12
8
|
/**
|
|
13
9
|
* For debugging and development.
|
|
14
10
|
*/
|
|
15
11
|
LogLevel[LogLevel["Debug"] = 1] = "Debug";
|
|
12
|
+
/**
|
|
13
|
+
* Contain the most detailed messages.
|
|
14
|
+
*/
|
|
15
|
+
LogLevel[LogLevel["Verbose"] = 2] = "Verbose";
|
|
16
16
|
/**
|
|
17
17
|
* Tracks the general flow of the app. May have long-term value.
|
|
18
18
|
*/
|
|
19
|
-
LogLevel[LogLevel["Info"] =
|
|
19
|
+
LogLevel[LogLevel["Info"] = 3] = "Info";
|
|
20
20
|
/**
|
|
21
21
|
* For abnormal or unexpected events. Typically includes errors or conditions that don't cause the app to fail.
|
|
22
22
|
*/
|
|
23
|
-
LogLevel[LogLevel["Warning"] =
|
|
23
|
+
LogLevel[LogLevel["Warning"] = 4] = "Warning";
|
|
24
24
|
/**
|
|
25
25
|
* For errors and exceptions that cannot be handled. These messages indicate a failure in the current operation or request, not an app-wide failure.
|
|
26
26
|
*/
|
|
27
|
-
LogLevel[LogLevel["Error"] =
|
|
28
|
-
/**
|
|
29
|
-
* For failures that require immediate attention. Examples: data loss scenarios.
|
|
30
|
-
*/
|
|
31
|
-
LogLevel[LogLevel["Fatal"] = 5] = "Fatal";
|
|
27
|
+
LogLevel[LogLevel["Error"] = 5] = "Error";
|
|
32
28
|
})(LogLevel = exports.LogLevel || (exports.LogLevel = {}));
|
|
33
29
|
/**
|
|
34
30
|
* Colors for CLI output message
|
package/build/utils/log.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/utils/log.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,IAAY,
|
|
1
|
+
{"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/utils/log.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,IAAY,QAqBX;AArBD,WAAY,QAAQ;IAClB;;OAEG;IACH,yCAAS,CAAA;IACT;;OAEG;IACH,6CAAW,CAAA;IACX;;OAEG;IACH,uCAAQ,CAAA;IACR;;OAEG;IACH,6CAAW,CAAA;IACX;;OAEG;IACH,yCAAS,CAAA;AACX,CAAC,EArBW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAqBnB;AAgDD;;GAEG;AACH,IAAY,MA6BX;AA7BD,WAAY,MAAM;IAChB;;OAEG;IACH,mDAAgB,CAAA;IAChB;;OAEG;IACH,qCAAS,CAAA;IACT;;OAEG;IACH,uDAAkB,CAAA;IAClB;;OAEG;IACH,mDAAgB,CAAA;IAChB;;OAEG;IACH,qDAAiB,CAAA;IACjB;;OAEG;IACH,+CAAc,CAAA;IACd;;OAEG;IACH,iDAAe,CAAA;AACjB,CAAC,EA7BW,MAAM,GAAN,cAAM,KAAN,cAAM,QA6BjB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/teamsfx-api",
|
|
3
|
-
"version": "0.22.4-alpha.
|
|
3
|
+
"version": "0.22.4-alpha.3770ad79d.0",
|
|
4
4
|
"description": "teamsfx framework api",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -61,13 +61,13 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@azure/core-auth": "^1.4.0",
|
|
64
|
-
"@microsoft/teams-manifest": "0.1.1-alpha.
|
|
64
|
+
"@microsoft/teams-manifest": "0.1.1-alpha.3770ad79d.0",
|
|
65
65
|
"axios": "^0.21.2",
|
|
66
66
|
"chai": "^4.3.4",
|
|
67
67
|
"jsonschema": "^1.4.0",
|
|
68
68
|
"neverthrow": "^3.2.0"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "23a476c4141a2cc2c3fe8c16b8fa252cafc43866",
|
|
71
71
|
"publishConfig": {
|
|
72
72
|
"access": "public"
|
|
73
73
|
},
|