From a5c8ef655d17c38e949fc0552da471a45d8ded85 Mon Sep 17 00:00:00 2001 From: David de Boer Date: Wed, 29 May 2024 10:36:21 +0200 Subject: [PATCH] feat: Add silent mode CLI argument --- src/cliArgs.ts | 5 +++++ src/main.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/src/cliArgs.ts b/src/cliArgs.ts index ec0b218..3685113 100644 --- a/src/cliArgs.ts +++ b/src/cliArgs.ts @@ -24,6 +24,10 @@ program 'Name of the stage of the pipeline you want to run' ) .option('--init', 'Initializes a new LDWorkbench project') + .option( + '--silent', + 'Disable console output, including the progress indicator.' + ) .version(version()); program.parse(); export const cliArgs: { @@ -31,6 +35,7 @@ export const cliArgs: { configDir?: string; pipeline?: string; stage?: string; + silent?: boolean; init?: boolean; } = program.opts(); diff --git a/src/main.ts b/src/main.ts index c432bf4..b0dcae9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -74,6 +74,7 @@ async function main(): Promise { const pipeline = new Pipeline(configuration, { startFromStageName: cliArgs.stage, + silent: cliArgs.silent, }); try {