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

Added HOARD_CONFIG env variable to specify config file #347

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seivan
Copy link

@seivan seivan commented Jul 11, 2024

HOARD_CONFIG can point to a file path or a directory path where the file name would default to config.yml

export HOARD_CONFIG="~/.zsh/config/plugins/hoard_config.yml"
  • Added shellexpand dependency.
  • Expand tilde and variables for trove_path when reading config.trove_path
  • Removed duplicate construction for HoardConfig.
  • Added tests for reading env variable and making sure files are there.
  • Split up reading path and creating files at paths.

Fixes: #346

@seivan seivan force-pushed the feature/config_env branch from 7e52537 to 3d3d232 Compare July 11, 2024 04:54
@seivan seivan force-pushed the feature/config_env branch from 3d3d232 to e9391d4 Compare July 11, 2024 04:59
@Hyde46 Hyde46 assigned Hyde46 and seivan and unassigned Hyde46 Jul 11, 2024
@Hyde46 Hyde46 self-requested a review July 11, 2024 17:59
@Hyde46
Copy link
Owner

Hyde46 commented Jul 11, 2024

Thanks a lot for the contribution!
Ill take a closer look and review this as soon as possible

@seivan seivan changed the title Added HOARD_CONFIG env variable to specify config file Added HOARD_CONFIG env variable to specify config file Jul 11, 2024
@Hyde46
Copy link
Owner

Hyde46 commented Jul 21, 2024

Could you add this functionality to the Readme?
otherwise im happy to merge

@seivan
Copy link
Author

seivan commented Nov 12, 2024

@Hyde46 Done.

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.

Allow changing location of config.yml using env variable
2 participants