6. Configuration
TodoApp can be configured via environment variables or a configuration file.
6.1. Data Storage Path
The location of the tasks JSON file. Default: ~/.todoapp/tasks.json
$ export TODOAPP_DATA_PATH="/path/to/tasks.json"
6.2. Log Level
Set the log verbosity: debug
, info
, warn
, error
. Default: info
$ export TODOAPP_LOG_LEVEL="debug"
6.3. Default Priority
Configure the default priority for new tasks: low
, medium
, high
. Default: medium
$ export TODOAPP_DEFAULT_PRIORITY="medium"
6.4. Configuration File
You can also create a YAML config file at ~/.todoapp/config.yml
:
data_path: "/custom/path/tasks.json"
log_level: "info"
default_priority: "high"
(Note: CLI flags override config file settings.)