Skip to content

Accessing .Env when using —context argument #1897

Answered by hairyhenderson
assayire asked this question in Q&A
Discussion options

You must be logged in to vote

No, because using . as the context name overrides the root context.

However, instead of using .Env you can use env.Getenv to (mostly) the same effect.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@assayire
Comment options

Answer selected by hairyhenderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants