Commit graph

5 commits

Author SHA1 Message Date
Sam Therapy 4ae8471580
fix(errors): put exported errors in util
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
IMO it is better to centralize them

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-12-06 20:46:04 +01:00
Sam Therapy a2e7b262ea
fix(misc): minor changes (#158)
All checks were successful
continuous-integration/drone/push Build is passing
1. update indirect dependencies
2. Set timeout to 5 seconds instead of 1
- this helps with slow queries
3. Put class back in the default query output
- this fixes a problem with using awl to make a root file

Reviewed-on: #158
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-12-03 20:36:23 +00:00
Sam Therapy feef2cddaf
fix(https): add default endpoint (#152)
All checks were successful
continuous-integration/drone/push Build is passing
say you do -H @dns.froth.zone/sodd
It should send a request to dns.froth.zone/sodd
but if you do -H @dns.froth.zone
it should send a request to dns.froth.zone/dns-query

This does that

Reviewed-on: #152
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-11-07 15:07:44 +00:00
Sam Therapy 81da49093d
refactor: Make all calls to options pointers (#132)
All checks were successful
continuous-integration/drone/push Build is passing
Instead of copying the opts struct every time it gets passed around, it should be created once and passed through reference.

This should reduce memory utilization, unfortunately I cannot test it since this program runs so fast pprof won't report anything useful.

I think I found all of them 🙂

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: #132
Reviewed-by: grumbulon <grumbulon@grumbulon.xyz>
2022-10-13 12:49:36 +00:00
grumbulon 3a0a8f015a chore(Refactor) (#110)
All checks were successful
continuous-integration/drone/push Build is passing
refactor

Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: #110
Reviewed-by: Sam <sam@samtherapy.net>
2022-09-24 23:11:09 +00:00
Renamed from cli/cli.go (Browse further)