cli: add WithLogger to route project discovery and loading warnings

WithLogger sends to a logging.Logger the warnings raised by the file
discovery options (several default config or override files, an
inaccessible default .env file, a project name taken from a symlink),
and hands the logger to the loader. Without it, those warnings keep
going through the standard logrus logger, unchanged.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2026-10-22 17:32:27 +02:00 • committed by Nicolas De loof
commit 85a97c0c08
2 changed files with 250 additions and 7 deletions