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

Support loading config from env var or config file #192

Open
Tracked by #148
sbernauer opened this issue Jul 21, 2022 · 2 comments
Open
Tracked by #148

Support loading config from env var or config file #192

sbernauer opened this issue Jul 21, 2022 · 2 comments

Comments

@sbernauer
Copy link
Member

Came out of stackabletech/stackablectl#36 (comment):

Is this parameter [--additional-demo-files] necessary for all calls of stackablectl? Wouldn't be an environment variable or folder containing the custom demos also be a viable solution?

@sbernauer
Copy link
Member Author

This topic came up again in stackabletech/stackablectl#228. One solution could be to add a config_file.properties or config_file.yaml. Before implementing a look should be taken at e.g. curl and git.

@fhennig fhennig transferred this issue from stackabletech/stackablectl Feb 1, 2024
@NickLarsenNZ
Copy link
Member

We should use the XDG_CONFIG_HOME var (or fallback rules as defined in the XDG Base Directory Specification)

Eg: ~/.config/stackablectl/config.toml (or whatever the user has changed it to).

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

No branches or pull requests

2 participants