Now, my experimental Configuration module for #RakuLang now we define what is accepted on a config file on a different place from the config usage, and that module where you define the config exports methods to set your configuration and methods for getting the configured data. https://github.com/FCO/Configuration#readme
GitHub - FCO/Configuration: Use configuration written in Raku (*.rakuconfig)

Use configuration written in Raku (*.rakuconfig). Contribute to FCO/Configuration development by creating an account on GitHub.

GitHub
@smokemachine Hi, this Configuration Module is a nice idea. I did sam tests on it. The single run option and signal option will work. But the watch Version will die.
@Wrzlbrm Hi! Thanks! Do you mean the example on README.md? Have you tried the examples on examples dir?
@Wrzlbrm This is how I've been playing/testing:
@smokemachine I installed your module via zef and use this little script....
@Wrzlbrm I just pushed a new version (with just a very small change), could you test it with that. please? That error is odd.. is that happening when you change the file?
@smokemachine yes the error pop up if I change the config file. The changes I will test tomorrow, after a bottle wine is is not the right time 😉 to test...
@Wrzlbrm I copied your code and that worked for me... I'm going to add a version of it as an example.
Configuration/examples/Wrzlbrm at main · FCO/Configuration

Use configuration written in Raku (*.rakuconfig). Contribute to FCO/Configuration development by creating an account on GitHub.

GitHub
@smokemachine Your version of my script looks better as my elsif chain. But the problem with 'watch' still exist.
@Wrzlbrm odd, here it’s working well… would you mind to open an issue on the gh page giving details like your Raku version, please?
@smokemachine I found the problem. If I use vim or gvim to edit the configuration file then this problem occur. With other editors it will work. I don't know why. Thank you for your help.
@Wrzlbrm odd… I was testing with neovim, emacs and comma…
@Wrzlbrm will vim and gvim remove the file before saving it? Maybe I should grep only the change events from watch…
@Wrzlbrm I just fixed the "vim problem" on my last commit. Vim renames the file, that was the problem...