dns: refactor record formatting and sort show results #28

Merged
amery merged 3 commits from pr-amery-dns into main 2023-10-27 17:52:20 +02:00
Owner
No description provided.
amery added 3 commits 2023-10-24 19:15:01 +02:00
Signed-off-by: Alejandro Mery <amery@jpi.io>
Signed-off-by: Alejandro Mery <amery@jpi.io>
Signed-off-by: Alejandro Mery <amery@jpi.io>
amery requested review from karasz 2023-10-24 19:15:13 +02:00
amery force-pushed pr-amery-dns from 70411a2aab to 36347abaab 2023-10-24 19:35:38 +02:00 Compare
karasz reviewed 2023-10-25 10:57:31 +02:00
karasz left a comment
Owner

see comments.

see comments.
@@ -41,0 +52,4 @@
return true
case a.Name > b.Name:
return false
}
Owner

I think here you might want to optimize and compare strings.ToLower(a.Name) to strings.ToLower(b.Name)

I think here you might want to optimize and compare `strings.ToLower(a.Name)` to `strings.ToLower(b.Name)`
karasz marked this conversation as resolved
amery added 2 commits 2023-10-26 20:48:55 +02:00
to print a whole []libdns.Record

Signed-off-by: Alejandro Mery <amery@jpi.io>
v2: change Name to lower case and Type to upper case before comparing

Signed-off-by: Alejandro Mery <amery@jpi.io>
Author
Owner

@karsaz like this?

@karsaz like this?
karasz approved these changes 2023-10-27 10:53:10 +02:00
karasz left a comment
Owner

LGTM

LGTM
amery merged commit e857ff7456 into main 2023-10-27 17:52:20 +02:00
amery deleted branch pr-amery-dns 2023-10-27 17:53:03 +02:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: amery/jpictl#28