@datadog/datadog-ci-plugin-terraform 5.18.0 → 5.20.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/dist/bundle.d.ts +39 -2
- package/dist/bundle.js +734 -412
- package/dist/bundle.js.map +1 -1
- package/package.json +6 -3
package/dist/bundle.d.ts
CHANGED
|
@@ -297,6 +297,40 @@ declare abstract class Command<Context extends BaseContext = BaseContext> {
|
|
|
297
297
|
static Default: never[];
|
|
298
298
|
}
|
|
299
299
|
//#endregion
|
|
300
|
+
//#region ../base/dist/helpers/logger.d.ts
|
|
301
|
+
declare enum LogLevel {
|
|
302
|
+
DEBUG = 1,
|
|
303
|
+
INFO = 2,
|
|
304
|
+
WARN = 3,
|
|
305
|
+
ERROR = 4
|
|
306
|
+
}
|
|
307
|
+
interface LoggerOptions {
|
|
308
|
+
shouldIncludeTimestamp?: boolean;
|
|
309
|
+
/**
|
|
310
|
+
* When `true`, every log call emits a single-line JSON object instead of
|
|
311
|
+
* ANSI-coloured text. Useful when Datadog itself (or any other log
|
|
312
|
+
* pipeline) ingests CLI output: each line parses cleanly and `level` is
|
|
313
|
+
* preserved instead of every `error` showing up as `info`.
|
|
314
|
+
*/
|
|
315
|
+
jsonOutput?: boolean;
|
|
316
|
+
}
|
|
317
|
+
declare class Logger {
|
|
318
|
+
private loglevel;
|
|
319
|
+
private rawWriteMessage;
|
|
320
|
+
private shouldIncludeTimestamp;
|
|
321
|
+
private jsonOutput;
|
|
322
|
+
constructor(writeMessage: (s: string) => void, loglevel: LogLevel, shouldIncludeTimestampOrOptions?: boolean | LoggerOptions);
|
|
323
|
+
setLogLevel(newLogLevel: LogLevel): void;
|
|
324
|
+
setShouldIncludeTime(newShouldIncludeTimestamp: boolean): void;
|
|
325
|
+
setJsonOutput(newJsonOutput: boolean): void;
|
|
326
|
+
isJsonOutput(): boolean;
|
|
327
|
+
error(s: string): void;
|
|
328
|
+
warn(s: string): void;
|
|
329
|
+
info(s: string): void;
|
|
330
|
+
debug(s: string): void;
|
|
331
|
+
private emit;
|
|
332
|
+
}
|
|
333
|
+
//#endregion
|
|
300
334
|
//#region ../base/dist/index.d.ts
|
|
301
335
|
type CommandContext = BaseContext & {
|
|
302
336
|
builtinPlugins: string[];
|
|
@@ -304,7 +338,11 @@ type CommandContext = BaseContext & {
|
|
|
304
338
|
/**
|
|
305
339
|
* This command should be extended by **every** command in the monorepo.
|
|
306
340
|
*/
|
|
307
|
-
declare abstract class BaseCommand extends Command<CommandContext> {
|
|
341
|
+
declare abstract class BaseCommand extends Command<CommandContext> {
|
|
342
|
+
protected logFormat: "json" | "text";
|
|
343
|
+
private _logger?;
|
|
344
|
+
get logger(): Logger;
|
|
345
|
+
}
|
|
308
346
|
//#endregion
|
|
309
347
|
//#region ../base/dist/commands/terraform/upload.d.ts
|
|
310
348
|
declare class TerraformUploadCommand extends BaseCommand {
|
|
@@ -324,7 +362,6 @@ declare class TerraformUploadCommand extends BaseCommand {
|
|
|
324
362
|
//#region src/commands/upload.d.ts
|
|
325
363
|
declare class PluginCommand extends TerraformUploadCommand {
|
|
326
364
|
private config;
|
|
327
|
-
private logger;
|
|
328
365
|
private git;
|
|
329
366
|
execute(): Promise<1 | 0>;
|
|
330
367
|
private syncGitMetadata;
|