From 96c14aaefbf188490f8ccd9213f8925180e947c0 Mon Sep 17 00:00:00 2001 From: Ivan Starkov Date: Sat, 3 Feb 2024 10:46:44 +0300 Subject: [PATCH] Remove ansi codes in script run (#3132) --- cli/script.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cli/script.ts b/cli/script.ts index e7d05b6c7d..6748410b1f 100644 --- a/cli/script.ts +++ b/cli/script.ts @@ -411,7 +411,12 @@ async function run( id, }) ).result ?? {}; - log.info(result); + + if (opts.silent) { + console.log(result); + } else { + log.info(result); + } break; } catch {