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

Feature request: support a local directory #111

Open
ghost opened this issue Aug 20, 2022 · 1 comment
Open

Feature request: support a local directory #111

ghost opened this issue Aug 20, 2022 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 20, 2022

Instead of the user modifying script/wz/config.yaml, having a separate local directory ($HOME/.local/share/cosmic?) that the server will load on top of it's own directory would be rather nice.

As an example in the local directory a user can have a config.yaml with only the changed values:

WORLDS: 2
ENABLE_PIC: false
USE_MTS: true

As well for scripts/wz folder the source likewise loads the local folder on top of it's own original folder, so the user only needs to have the scripts / wz xmls that they want to change or add.

@P0nk
Copy link
Owner

P0nk commented Aug 21, 2022

Sounds like a useful feature, I just don't know how it would work in practice.
In the case of config.yaml, I've been eyeing an alternative to YamlBeans called Typesafe config. It is based on HOCON files (JSON with extra features) and includes support for overriding properties.

Will get back to this at a later point, when issues with higher priority have been taken care of.

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