Financial-Times / nori

🍙 exploratory command-line tool to make changes across multiple repositories & track their progress
MIT License
11 stars 0 forks source link

cpp-814 - bizops key should not be a prerequisite for running nori #181

Closed leannecornish-ft closed 2 years ago

leannecornish-ft commented 2 years ago

Users currently need to have a biz ops api key set to run nori. This is because it's exported as an instance on the BizOpsClient class, and is immediately instantiated when the commands that import it are initialised when the program loads.

This pr lazy-loads the bizops module, so that it's only instantiated when the consuming function is used. This felt like a simple way of doing it without changing too much - happier to hear better options though.