nagee
e91153fa8f
Basic server
2 years ago
isthisnagee
0ab9bca213
wip
3 years ago
isthisnagee
ba188c53ee
go fmt
3 years ago
isthisnagee
d00ceceeec
Add flag to limit the number of entries in `diary list` ( #10 )
...
Co-authored-by: isthisnagee <yes@isthisnagee.com>
Reviewed-on: #10
Co-authored-by: isthisnagee <accounts@isthisnagee.com>
Co-committed-by: isthisnagee <accounts@isthisnagee.com>
3 years ago
isthisnagee
d7b53d74c5
Return error from NewApp
...
Floating up the error seems like a best practice.
Part of #7
3 years ago
isthisnagee
fe5f8a68a1
Add documentation for db_path config
...
Closes #6
3 years ago
isthisnagee
ad01d78765
Fix issues with db_path config arg
...
Part of #6
3 years ago
isthisnagee
f84eb2106e
Add installation instructions
...
This should've been part of the v0.0.1 tagged commit but oh well.
Lesson learned :)
Closes #2
3 years ago
isthisnagee
4b8bc4b4e1
Tidy up go.mod
3 years ago
isthisnagee
1c595d7c45
Clean up cmd files + cmd line documentation
3 years ago
isthisnagee
6521e68ee3
Update imports to reflect new location
3 years ago
isthisnagee
e422a705fb
wip
3 years ago
isthisnagee
4b32bb67f4
Add short and long descriptions to the commands
3 years ago
isthisnagee
3760466b31
Add ability to edit
3 years ago
isthisnagee
a88b0f1444
Add diary binary to gitignore
3 years ago
isthisnagee
11f9d06754
Add DS_Store to gitignore
3 years ago
isthisnagee
540ea14854
Use a temp file to create the note
3 years ago
isthisnagee
8bc8b84583
Delete notes when deleting entry
...
The notes that the user will delete is also shown to them
3 years ago
isthisnagee
b7d278f149
Add command to add note + show an entry
3 years ago
isthisnagee
9d0a00bd59
this commit hsould be broken up
3 years ago
isthisnagee
afecf9628c
Add notes to diary entries
3 years ago
isthisnagee
91b76a3a20
Rename model to entry
3 years ago
isthisnagee
c822f8ec91
Add delete method :)
3 years ago
isthisnagee
7a86bee9fa
Run cobra init
3 years ago
isthisnagee
19d5d5f3c8
Add basic model
3 years ago
isthisnagee
4994ecf63c
Rename to diary
...
Also, this should be in a separate commit, but update the initial
migration
3 years ago
isthisnagee
42a61dcddb
Refactor db code
...
The versioning now happens using the user_version pragma, provided by
sqlite. From the docs:
> The user-version is an integer that is available to applications to use
> however they want. SQLite makes no use of the user-version itself.
Also the migrations happen in their own loop. Each migratin should
get tested(?)
3 years ago
isthisnagee
06891059ac
Refactor project structure
3 years ago
isthisnagee
e3d511db69
Create DB file
...
The eng_log_version table will be used to figure out which migrations to
run.
3 years ago
isthisnagee
378d0c711d
Add ignore file
3 years ago
isthisnagee
f9b69c1884
Add driver dependency
3 years ago
isthisnagee
63602265b2
Initial commit
...
I have no clue what I'm doing haha
3 years ago