From fe5f8a68a1ef7c61c8c617abe91360071c8b2b99 Mon Sep 17 00:00:00 2001 From: isthisnagee Date: Fri, 21 Jan 2022 23:24:23 -0800 Subject: [PATCH] Add documentation for db_path config Closes https://git.nagee.dev/isthisnagee/diary/issues/6 --- README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/README.md b/README.md index 30e5be2..6a3c9d7 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,33 @@ ``` go install git.nagee.dev/isthisnagee/diary@v0.0.1 ``` + + +## Configuration + +### Valid locations for the config file + + +The config file can be passed to the `diary` command through a command line +arg. For example: `diary --config=~/.diary.toml` + +When there is no config argument, `diary` looks for the config here: + +- `$HOME/.config/diary/diary.toml` + + +### Configuration options + + +#### `db_path` + +- Name: `db_path` +- Type: String +- Default: `~/.diary.sql` +- Description: The location of the sqlite database. If the file does not exist, + it will be created. + +``` +db_path = "path/to/wherever/you/want/the/db/file" +``` +