From 0594a6ba3caf71d7f3454ab09f812b545c7291d9 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Tue, 12 Sep 2023 13:34:59 +0200 Subject: [PATCH] feat: allow configuring verbose mode through CARGOKIT_VERBOSE env variable --- build_tool/lib/src/build_tool.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_tool/lib/src/build_tool.dart b/build_tool/lib/src/build_tool.dart index ccbc463..1d9462a 100644 --- a/build_tool/lib/src/build_tool.dart +++ b/build_tool/lib/src/build_tool.dart @@ -26,7 +26,8 @@ abstract class BuildCommand extends Command { Future run() async { final options = CargokitUserOptions.load(); - if (options.verboseLogging) { + if (options.verboseLogging || + Platform.environment['CARGOKIT_VERBOSE'] == '1') { enableVerboseLogging(); }