aboutsummaryrefslogtreecommitdiff
path: root/src/useropts.rs
AgeCommit message (Collapse)Author
2021-10-07Modernize error handlingDaniel Schadt
This sprinkles in some thiserror and anyhow instead of the hand-rolled 'error_froms!' macros and the MainResult. The benefit of this is that we're hooking into an established ecosystem of error handling and we're saving a lot of effort in the hand-written Display and Error implementations. The reason for not sprinkling anyhow everywhere is because the retrieval/rendering part of kondou could be split off into a library at some point, in which case we want to have a proper KondouError type. However, the argument could be made that the current split of errors is not very good, especially because many of them boil down to the same inner errors (RenderError wrapping ApiError wrapping reqwest::Error), which keeps unnecessary information. Some future improvements may include 1.) Unifying those error enums into one bigger enum 2.) Attaching more context through anyhow in the application layer 3.) Properly define an API and split off the inner logic from the UI logic
2021-10-07Update dependenciesDaniel Schadt
Some slight API changes in rusttype, but apart from that it's only version number bumps.
2019-12-25allow the spec names to be aligned center/rightDaniel Schadt
2019-12-25add more user configurable optionsDaniel Schadt
2019-12-14add preliminary support for user configurationsDaniel Schadt