Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getEnv refactor -> getEnvAs and getEnvAsChecked #1208

Open
wants to merge 3 commits into
base: v3_develop
Choose a base branch
from

Conversation

lnotspotl
Copy link
Member

@lnotspotl lnotspotl commented Jan 8, 2025

Based on our discussion here: https://luxonis.slack.com/archives/C065PDYKNAK/p1735943335766909

TLDR: remove older getEnv utility function for retrieving environment variables and replace it with getEnvAs and getEnvAsChecked, two template functions allowing one to specify the return type and performing necessary parsing internally.

@lnotspotl lnotspotl self-assigned this Jan 8, 2025
@lnotspotl lnotspotl marked this pull request as draft January 8, 2025 01:34
@lnotspotl lnotspotl changed the title getEnv refactor -> getEnvAs and getEnvAsChecked [WIP] getEnv refactor -> getEnvAs and getEnvAsChecked Jan 8, 2025
@lnotspotl lnotspotl marked this pull request as ready for review January 21, 2025 23:16
@lnotspotl lnotspotl changed the title [WIP] getEnv refactor -> getEnvAs and getEnvAsChecked getEnv refactor -> getEnvAs and getEnvAsChecked Jan 21, 2025
@moratom moratom requested a review from Serafadam January 24, 2025 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant