foundry_cli::utils

Function load_dotenv

Source
pub fn load_dotenv()
Expand description

Loads a dotenv file, from the cwd and the project root, ignoring potential failure.

We could use warn! here, but that would imply that the dotenv file can’t configure the logging behavior of Foundry.

Similarly, we could just use eprintln!, but colors are off limits otherwise dotenv is implied to not be able to configure the colors. It would also mess up the JSON output.