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

Add global configuration file #34

Merged
merged 1 commit into from
Jan 25, 2022
Merged

Add global configuration file #34

merged 1 commit into from
Jan 25, 2022

Conversation

nicholasjng
Copy link
Owner

Fixes #21.

This commit adds a global configuration file to pybm, which can be used to set system-wide defaults for initialized pybm configurations similar to git's config system.

  • The --global switch was added to the pybm config command, which allows manipulating the global config object similar to the local one.
  • keys, values, and items methods were added to the PybmConfig interface to emulate dictionary functionality for the config.
  • A from_dict classmethod was added to initialize a PybmConfig from a dictionary object.
  • A --skip-global switch was added to pybm init to skip initialization of a local config with global values.

This commit adds a global configuration file to `pybm`, which can be used to set system-wide defaults for initialized pybm configurations similar to git's config system.

* The `--global` switch was added to the `pybm config` command, which allows manipulating the global config object similar to the local one.
* keys, values, and items methods were added to the PybmConfig interface to emulate dictionary functionality for the config.
* A `from_dict` classmethod was added to initialize a PybmConfig from a dictionary object.
* A `--skip-global` switch was added to `pybm init` to skip initialization of a local config with global values.
@nicholasjng nicholasjng merged commit 9532296 into master Jan 25, 2022
@nicholasjng nicholasjng deleted the global-config branch February 13, 2022 18:05
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

Successfully merging this pull request may close these issues.

Add global configuration file
1 participant