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 a Command to Reload a Config File #63

Open
oneirocosm opened this issue Dec 21, 2023 · 0 comments
Open

Add a Command to Reload a Config File #63

oneirocosm opened this issue Dec 21, 2023 · 0 comments

Comments

@oneirocosm
Copy link

Currently, UserSettings.loadConfig has a type of sync.Once so the config files only need to be reloaded once. This can be inconvenient if the files need to be re-parsed for updated values in the future.

As discussed here, by making this a pointer to sync.Once, and adding a helper function, it would be possible to reload the configuration when necessary.

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