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.
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.
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.