Add environment variable support for existing runtime flags
See original GitHub issueIt was brought up in Discord by @PhilsLab that we should allow environment variables to be more easily configured in things like Docker containers.
This is really simple, and already supported by the library used, we just need to figure out appropriate names.
https://oclif.io/docs/flags is the documentation for the flags library, the key feature being env
.
We’d just need to add that to each of the flags in https://github.com/codercom/code-server/blob/master/packages/server/src/cli.ts#L20 like the following:
host: flags.string({ char: "h", default: "0.0.0.0", env: "HOST" }),
Thoughts are appreciated on this 😃.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Add environment variable support for existing runtime flags #108
I'd love to see this land as I'm building a Helm Chart for code-server . It would consistently help setting settings and secrets....
Read more >Using Environment Variables | Cloud Functions Documentation
Updating runtime environment variables · Open the Functions Overview page in the Google Cloud console: · Click an existing function to go to...
Read more >Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >Use multiple environments in ASP.NET Core | Microsoft Learn
Use multiple environments in ASP.NET Core · Environments · Set the environment by setting an environment variable · Set the environment in code....
Read more >How To Set Environment Variables - Twilio
Learn how to set up environment variables in Linux, Windows, ... The environment variable is available to all processes started by the user, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aslafy-z I have a PR I’m going to submit tonight, I just had other stuff come up. Have to finish my workday first 😃.
I’d love to see this land as I’m building a Helm Chart for
code-server
. It would consistently help setting settings and secrets.