Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | testing create/delete | Ben Morrison | 2020-05-28 | 1 | -2/+31 |
| | |||||
* | expanded testing | Ben Morrison | 2020-05-28 | 1 | -1/+47 |
| | |||||
* | extensive rewrite to use json for storage: | Ben Morrison | 2020-05-28 | 1 | -125/+56 |
| | | | | | | | | | | | | | | sqlite3 requires the directory where the database resides to be writeable by the user. This presents a problem on multiuser UNIX systems where they may want to limit areas where users have write access. This rewrite totally scraps the sqlite3 database in favor of a pretty simple json file consisting of an array of posts. flock(2) locking is used to synchronize access to the file and make sure two clients aren't trying to write to it at once. The locking is fairly granular right now, but later I may change it to using a single lock for the duration of execution since race conditions are *possible*, if unlikely for the purposes of clinte's intended use. | ||||
* | clippy lints | Ben Morrison | 2020-05-26 | 1 | -2/+0 |
| | |||||
* | post ID can be specified as an argument. if absent, user will be prompted | Ben Morrison | 2020-05-26 | 1 | -1/+1 |
| | |||||
* | prepopulating editor with post body when editing | Ben Morrison | 2020-05-26 | 1 | -3/+3 |
| | |||||
* | editing a post calls $EDITOR | Ben Morrison | 2020-05-26 | 1 | -6/+13 |
| | |||||
* | removed panics and refactored error handling | Ben Morrison | 2020-05-26 | 1 | -0/+3 |
| | | | | | | | | Using a helper function to handle fatal errors error::helper() Displays the simplified message if an error condition occurs. Displays both the simplified and the raw error message if -v verbose logging is enabled. | ||||
* | using in-memory db for tests, passing path to logging::init() instead of ↵ | Ben Morrison | 2020-05-26 | 1 | -1/+1 |
| | | | | assuming | ||||
* | trimming whitespace | Ben Morrison | 2020-01-20 | 1 | -9/+15 |
| | | | | | | both when posting new item and when displaying items. prevents posts from messing up the display of other posts with extraneous whitespace. | ||||
* | removed extraneous newline on post display | Ben Morrison | 2020-01-20 | 1 | -1/+1 |
| | |||||
* | letting errors flow up | Ben Morrison | 2019-09-05 | 1 | -56/+49 |
| | |||||
* | now opens $EDITOR to write post body | Ben Morrison | 2019-09-04 | 1 | -4/+2 |
| | |||||
* | getting user name at single location | Ben Morrison | 2019-09-04 | 1 | -19/+8 |
| | |||||
* | reorganization | Ben Morrison | 2019-09-04 | 1 | -4/+149 |
| | |||||
* | moved display func to posts.rs | Ben Morrison | 2019-08-31 | 1 | -0/+34 |
| | |||||
* | fixed broken test, expanded test v0.3.3 | Ben Morrison | 2019-08-30 | 1 | -2/+5 |
| | |||||
* | fixed test failure | Ben Morrison | 2019-08-30 | 1 | -14/+1 |
| | |||||
* | moved some functionality to module, added tests | Ben Morrison | 2019-08-30 | 1 | -0/+79 |