tilt-dev / tilt-extensions

Extensions for Tilt
https://tilt.dev/
Apache License 2.0
201 stars 159 forks source link

Create a showWarningsIfMissing flag to allow suppressing dotenv warnings #529

Closed psigen closed 11 months ago

psigen commented 11 months ago

This allows the ability to suppress a warning if a dotenv file is missing.

nicks commented 11 months ago

i feel like this makes the api unnecessarily complex. if you don't want the warning, you can do:

if os.path.exists('.env'):
  dotenv()
psigen commented 11 months ago

That's what I'm doing right now. I have a question though: do we also need to watch_file() to allow live-reload if the file shows up while Tilt is running?