From 3b80a0a16ab2cac09ec352e696636b4b8068653b Mon Sep 17 00:00:00 2001 From: David de Boer Date: Wed, 29 May 2024 10:37:27 +0200 Subject: [PATCH] feat: Add silent mode CLI argument (#66) --- 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 {