From 68c07c23f54970edbfbe06fc3d7d94af2974893f Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 19 Oct 2024 12:18:15 +0200 Subject: [PATCH] add a way to skip deno cli warning --- cli/main.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/cli/main.ts b/cli/main.ts index 08f98e4c0c..e2e521cbee 100644 --- a/cli/main.ts +++ b/cli/main.ts @@ -217,9 +217,11 @@ function isMain() { const isMain = import.meta.main; if (isMain) { if (!Deno.args.includes("completions")) { - log.warn( - "Using the deno runtime for the Windmill CLI is deprecated, you can now use node: deno uninstall wmill && npm install -g windmill-cli" - ); + if (Deno.env.get("SKIP_DENO_DEPRECATION_WARNING") !== "true") { + log.warn( + "Using the deno runtime for the Windmill CLI is deprecated, you can now use node: deno uninstall wmill && npm install -g windmill-cli. To skip this warning set SKIP_DENO_DEPRECATION_WARNING=true" + ); + } } } return isMain;