Commit Graph

146 Commits

Author SHA1 Message Date
nytpu eb7d8cf21e implement remove command 2021-03-18 15:02:22 -06:00
nytpu fbfa123d2d Implement list command using previously implemented core.FullData.Export() 2021-03-18 15:01:51 -06:00
nytpu 77982cb60e add Export function to core.FullData 2021-03-18 15:01:25 -06:00
nytpu d0a71b360d first write to .new then move after finishing writing to prevent data corruption 2021-03-18 14:50:40 -06:00
nytpu 843d1b677a clarify add flags, rename addTypeFlag to addPageFlag 2021-03-18 14:39:32 -06:00
nytpu 2487727329 factor out argument checking into function 2021-03-18 14:39:32 -06:00
nytpu 1065ed7a18 Start refresh job for refresh command 2021-03-18 13:48:35 -06:00
nytpu a80d3f29ff add flag for number of refresh workers 2021-03-18 13:48:26 -06:00
nytpu 326edc97c5 add RefreshAll with workers 2021-03-18 13:43:22 -06:00
nytpu 364e8fbc21 fix null dereference when getting old title 2021-03-18 13:34:02 -06:00
nytpu 6f2f4ac4b1 move saving json down since it's done after almost any function 2021-03-18 13:33:31 -06:00
nytpu f8601b82ab Use strings for URLs internally for consistency. 2021-03-18 13:02:17 -06:00
nytpu 794b1fc04f cleanup and simplify error handling 2021-03-18 12:05:16 -06:00
nytpu f05d1e6c2a why those comments dere? 2021-03-18 11:47:10 -06:00
nytpu e9ade7f33f ignore mutexes in json output/input 2021-03-18 11:41:13 -06:00
nytpu 7d0600f5f0 improve gemini feed parsing by stripping off more characters from title 2021-03-18 11:37:32 -06:00
nytpu df2e3bfa02 fix nil pointer error in GofeedConvert 2021-03-18 11:37:12 -06:00
nytpu 6cf5ca01cf Changed url.URL to string so the json is less bloated 2021-03-18 11:36:57 -06:00
nytpu 00de991f6b Make sure datapath exists to prevent error 2021-03-18 11:36:05 -06:00
nytpu 853993cdd6 add method to write structs to disk 2021-03-18 11:08:23 -06:00
nytpu cace315eff start building out different commands in main() 2021-03-18 11:08:03 -06:00
nytpu b0cbb4e380 update flags to be more easily usable 2021-03-18 10:53:51 -06:00
nytpu c145f8d4d2 initialize core in main() 2021-03-18 10:37:00 -06:00
nytpu a3a427b9ee Refactor fetch functions to use new FullData.Insert{Feed,Page} funcs 2021-03-18 10:33:58 -06:00
nytpu 0441fc9349 Implement Insert{Feed,Page} on FullData for easy insertions 2021-03-18 10:33:26 -06:00
nytpu f3096c41a6 remove this so it doesn't look inconsistent 2021-03-18 10:32:34 -06:00
nytpu 3b26eb9863 fix several typos throughout core 2021-03-18 10:32:10 -06:00
nytpu 5ba676ed5d refactor fetch functions to insert into FullData 2021-03-18 10:19:07 -06:00
nytpu e1a5c68ec7 add init for global FullData 2021-03-18 10:18:54 -06:00
nytpu 593c1288bc resolve XXX question introduced by e42ebd8 2021-03-17 11:24:24 -06:00
nytpu 8426bb6494 make jsonData public 2021-03-17 09:38:41 -06:00
nytpu e42ebd8171 add XXX to core.JsonData mutex 2021-03-17 09:37:41 -06:00
nytpu 5c735b4ce0 improve documentation for PageEntries functions 2021-03-17 09:16:19 -06:00
nytpu 521b162007 implement sort.Interface for core.Feed 2021-03-17 09:16:19 -06:00
nytpu 9a22dd1b64 fix bug in newHTTPFeed 2021-03-17 09:04:05 -06:00
nytpu 6341c67574 add (stubbed) updateGopherFeed function 2021-03-17 09:04:05 -06:00
nytpu 795979e3bb add updateGopherPage function 2021-03-17 09:04:05 -06:00
nytpu e68ff691b8 add updateHTTPPage function 2021-03-17 09:02:02 -06:00
nytpu f9428c3e0e add updateGeminiPage and refactor newGeminiPage to use updateGeminiPage. 2021-03-17 09:02:02 -06:00
nytpu 09c1c4caab add general Update* in fetch.go
TODO: implement backend protocol functions
2021-03-17 08:48:16 -06:00
nytpu 1389fc8d6e fix comment and update readme 2021-03-17 08:41:42 -06:00
nytpu 07d85c0bfc implement New* routines for fetching and creating new feeds/pages.
Also includes routines for fetching gemini, http, and gopher resources.

TODO: add Update* routines to update existing feeds/pages.
2021-03-16 22:43:18 -06:00
nytpu f6313f4465 implement core package with structs, etc. 2021-03-16 22:42:51 -06:00
nytpu f6dfbad0b5 add man page 2021-03-16 10:24:44 -06:00
nytpu 91e663c0f0 add command parsing 2021-03-16 10:24:36 -06:00
nytpu f82e090577 initial commit 2021-03-16 10:19:42 -06:00