5pm-HDH / churchtools-cli

With the ChurchTools-CLI-Tool, you can access data from your ChurchTools application instance directly through a CLI application, using simple commands that are easy to learn. The tool is compatible with cmd on Windows, terminal on Mac, and bash on Linux.
3 stars 0 forks source link

Better config handling #44

Open staubichsauger opened 1 year ago

staubichsauger commented 1 year ago

Creating a config directory in the same directory as the CLI is executed isn't particularly robust or friendly to a users machine. Configuration should be placed in either a $HOME/.ctcli folder or even better in a $HOME/.config/ctcli folder (at least on Linux/Mac based systems).

A simple first step would be to provide an option to tell the CLI where to look for the config folder (e.g. --config-dir or using an environment variable like $CTCLI_CONFIG_DIR). This would allow people wanting a different behavior (me :wink: ) to at least configure it differently.