Hey team Let us make sure that we do not use os.G...
# atmos-dev
s
Hey team Let us make sure that we do not use os.GetEnv or manual flag parsing logic. Always bind both env and cobra command flag to viper. I am already migrating existing os.GetEnv logic. So soon we will have a good api that will help us do this efficiently. Viper will handle the priority
flag > env > config
automatically. Meanwhile you can use my pr as a reference. It is still in draft. But this will reduce our diversified source of truths for each variables. @Erik Osterman (Cloud Posse) @Andriy Knysh (Cloud Posse) let us keep this in our reviews 🙂
e
Can you add a go forbid lint check to for getting the variables
s
Sure 🙂