You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Go to file
isthisnagee d00ceceeec
Add flag to limit the number of entries in `diary list` (#10)
3 years ago
cmd Add flag to limit the number of entries in `diary list` (#10) 3 years ago
db this commit hsould be broken up 3 years ago
model Add flag to limit the number of entries in `diary list` (#10) 3 years ago
.gitignore Add diary binary to gitignore 3 years ago
LICENSE Run cobra init 3 years ago
README.md Add documentation for db_path config 3 years ago
go.mod Tidy up go.mod 3 years ago
go.sum Tidy up go.mod 3 years ago
main.go Update imports to reflect new location 3 years ago

README.md

diary

Installation

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"