Commit Graph

13 Commits

Author SHA1 Message Date
jannikac 8413555d2f
Implement thiserror and improve output formatting (#91)
* implemented an error struct with all possible errors using thiserror

* Replaced die_with with ClientError enum derived with thiserror.
This enables prettier and more structured error handling than anyhow

* Added proper parsing of Gandi API Responses.
This also makes it possible to output prettier logs.

* improved error message

* anyhow is better for main fn because it outputs anyhow errors correctly
2023-02-10 22:08:54 -05:00
Kaan Barmore-Genç 27a60d3ac2
Add new IP source "seeip" (#90) 2023-02-01 23:19:57 -05:00
Kaan Barmore-Genç 327b14a00a
Skip updating the IP address if it did not change (#88)
* Skip updating the IP address if it did not change

* Update readme
2023-02-01 02:00:09 -05:00
jannikac 041c1109e0
Fix linter suggestions (#68)
* removed unneeded lifetimes

* removed unneccessary imports

* removed unneccessary return statements

* added derive eq -> linter suggestion

* removed unneccessary references

* made code more concise

* ok_or_else instead of ok_or improves performance -> linter suggestion
2022-12-18 00:53:48 -05:00
Kaan Barmore-Genç 5755aedc2f
Add CLI option to skip ipv4 or ipv6 (#58)
closes #7
2022-11-13 15:36:21 -05:00
Kaan Barmore-Genç eaabec35b4
Add option to use icanhazip as an IP source (#40)
* Add option to use icanhazip as an IP source

* skip IP source API tests in CI
2022-08-23 01:17:17 -04:00
Kaan Barmore-Genç 90c5485cce
Add first test (#38)
* wip

* wip implement test

* complete test

* add lint and test actions

* fix bad format
2022-08-22 22:20:10 -04:00
Kaan Barmore-Genç 661dfc55fd
Use a single threaded setup & allow configurable TTL (#21)
* use a single threaded executor

* add configurable TTL support
2022-06-09 21:29:02 -04:00
Kaan Genc 66642836fa fix config issues 2022-01-23 22:26:57 -05:00
Kaan Genc 3a7620b6d5 Use die-exit to clean up exits 2022-01-23 16:12:27 -05:00
Kaan Genc 093b99d69d almost done! 2021-12-24 20:20:31 -05:00
Kaan Genc cab2ecbdf1 successfully made a request! 2021-12-14 22:30:36 -05:00
Kaan Genc cfe229234e organize into folders 2021-12-12 04:32:05 -05:00