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

Configuration files #5

Open
stephenfin opened this issue Aug 28, 2017 · 0 comments
Open

Configuration files #5

stephenfin opened this issue Aug 28, 2017 · 0 comments

Comments

@stephenfin
Copy link
Member

At present, configuration can be loaded from one of three places (in order of priority):

  1. Environment flags, e.g. PW_USERNAME
  2. Command-line options, e.g. --username
  3. The git-config cache, e.g. git config pw.username

There's no reason to break this. However, we should add a fourth mechanism: configuration files. This would allow us to distribute the configuration as part of source control. This configuration file could take the format of pwclientrc files. However, we may also wish to learn from some of the mistakes of that format.

If we do this, we may also wish to add an init sub-command, which would initialize the git-config cache with this data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant