summary refs log tree commit diff stats
path: root/cmd
Commit message (Collapse)AuthorAgeFilesLines
* Drop response caching on bpodAndinus2020-03-261-83/+7
| | | | | | | | | | | | | | Caching on bpod was full of assumptions and very hacky, this commits removes it all. Images are still cached and we prepend the date to their file name so that it becomes easier to work with them later. Also they are seperated by a colon so it's easy to remove the date too with a script or something. BPOD is not even an official api and it can get closed anyday, bing uses this to get bpod on bing.com and we are just using it. They still have pretty pictures though and so I'll still keep it. If users want to get all information then they can just use -dump flag and save it to a file.
* Unmarshal after dumpAndinus2020-03-261-8/+5
| | | | | dump no longer exits the program, this doesn't make any different. We are still doing the same thing.
* Fix dump logicAndinus2020-03-262-2/+2
|
* Disable caching on random (bpod)Andinus2020-03-251-67/+11
|
* Disable cache when random is not passed (bpod)Andinus2020-03-251-8/+19
|
* Enable random flag and fix issue with body and res not in sync (bpod)Andinus2020-03-251-21/+31
|
* Bump version to v0.6.1 v0.6.1Andinus2020-03-251-1/+1
|
* Disable random flag on bpod & warn in readmeAndinus2020-03-251-3/+17
|
* Describe bug in programAndinus2020-03-251-0/+7
|
* Add bpod supportAndinus2020-03-253-11/+211
|
* Rename dlAndCacheBody to dlAndCacheAPODBody to prevent conflictAndinus2020-03-251-3/+3
|
* Add apod support & fix errorsAndinus2020-03-254-0/+305
|
* Reinitialize project and change module urlAndinus2020-03-243-417/+0
|
* Bump version to v0.5.2 v0.5.2Andinus2020-03-231-1/+1
|
* Add notify functionality to cetusAndinus2020-03-233-2/+33
|
* Put the functions into seperate files & fix compile time errorAndinus2020-03-193-227/+243
| | | | | | | Splitting the program into seperate programs will cause the binary size to double if the end user wants both services. Instead splitting the functions in seperate files will keep the binary size small for both services combined & also the program will be maintainable.
* Bump version to v0.5.1 v0.5.1Andinus2020-03-191-1/+1
|
* Add local cache for fetched bodyAndinus2020-03-191-59/+127
|
* Check local cache before downloading backgroundAndinus2020-03-191-7/+55
|
* Fix logical error in execAPOD()Andinus2020-03-191-1/+1
|
* Add examples to readmeAndinus2020-03-191-1/+1
|
* Move apod & bpod blocks to their own functionAndinus2020-03-191-115/+148
|
* Remove package cetusAndinus2020-03-191-2/+3
| | | | Moved req.go to request package & version to main.go
* Initial commit for Cetus v0.5.0 v0.5.0Andinus2020-03-181-0/+220
|
* Restructure for Cetus v0.5Andinus2020-03-183-412/+0
| | | | | This version aims for a cleaner code, better documentation & to adopt better practices.
* cetus-wallhaven: Print additional information, fix logical errorAndinus2020-03-161-23/+24
|
* Add Wallhaven supportAndinus2020-03-161-0/+151
|
* Export struct fields v0.4.9Andinus2020-03-162-47/+46
| | | | | | | Only exported structs and fields are visible to other packages, including the encoding/json package. So you must capitalize the field names of the structs to export those fields so the Marshal func can see them
* Rewrite apod response retrivalAndinus2020-03-162-57/+61
|
* Add dump option & rewrite bpod response retrieval functionAndinus2020-03-161-44/+59
|
* Remove license text from headersAndinus2020-03-152-28/+0
|
* cetus-nasa: Fix compile time errorAndinus2020-03-151-1/+1
|
* cetus-bing: Correct date format v0.4.5Andinus2020-03-151-1/+12
|
* Port path-only to cetus-nasaAndinus2020-03-151-0/+6
|
* Support Bing Photo of the DayAndinus2020-03-151-0/+121
|
* Clean up repeat variable declarationAndinus2020-03-151-13/+5
|
* Handle if block within printDetails functionAndinus2020-03-151-3/+4
|
* Fix url on media types other than imageAndinus2020-03-151-1/+1
|
* Split getting api response into a functionAndinus2020-03-151-7/+18
|
* Fix url when media type is not an imageAndinus2020-03-151-1/+5
|
* Check media typeAndinus2020-03-151-8/+18
| | | | | | | Today's media type was video & that broke the program, currently this will check the media type & set background only if it's an image. It exits if media type is not an image, this behaviour might change later.
* Add version flagAndinus2020-03-141-12/+21
|
* Add cetus-nasa program v0.4.0Andinus2020-03-141-0/+105
| | | | cetus-nasa uses NASA's API to get Astronomy Picture of the Day.
* Split project into multiple programsAndinus2020-03-141-60/+0
| | | | Re-initialization to split project into multiple programs
* Add support for random photo as background v0.3.1Andinus2020-03-141-0/+8
|
* Add photoID supportAndinus2020-03-141-1/+36
| | | | photo-id flag can be used to set a specific photo as background
* Reinitialize projectAndinus2020-03-141-143/+1
|
* Restructure projectAndinus2020-03-141-0/+159