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

Allow to override a path to config file #5

Open
harnyk opened this issue Mar 16, 2023 · 0 comments
Open

Allow to override a path to config file #5

harnyk opened this issue Mar 16, 2023 · 0 comments

Comments

@harnyk
Copy link

harnyk commented Mar 16, 2023

Problem

Currently, the path to the config file is hardcoded to ./config.yaml and is searched in the current directory.

This behavior is convenient when there are multiple companies and each company has its own config file in a separate directory.

But for a client with a single company, it is inconvenient to have to call the program from the specific directory every time.

Solution

Add a new environment variable ONELOGIN_AUTH_CLI_CONFIG_FILE that, when set, will override the default path to the config file.

A user can set this variable in the shell profile and then call the program from any directory.

harnyk pushed a commit to harnyk/onelogin-auth-cli that referenced this issue Mar 16, 2023
harnyk pushed a commit to harnyk/onelogin-auth-cli that referenced this issue Mar 16, 2023
wardviaene pushed a commit that referenced this issue Mar 20, 2023
* feat: override a path to config file #5
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

1 participant