Environment Variables #552
Unanswered
CruzanCaramele
asked this question in
Questions
Replies: 1 comment
-
Have you considered changing your command's API to take an environment variable name as an option and then read from that environment variable internal to the command? That seems like the clearest way to do things. I don't think you could otherwise make one |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
In the above example function definition, is there a way to make the argument environment variable auth key envvar="AUTH_TOKEN" to be defined by the user instead, rather than hardcoding AUTH_TOKEN ?
Operating System
Windows
Operating System Details
No response
Typer Version
0.7.0
Python Version
Python 3.11.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions