Simplify README examples by combining line continuations, improving method chaining clarity, and standardizing formatting for batch DNS operations.

This commit is contained in:
2026-01-06 13:50:30 +01:00
parent a221de4792
commit 5098e17172
+8 -16
View File
@@ -469,11 +469,9 @@ RecordEntity updated = client.zone("example.com")
// Delete DNS records // Delete DNS records
client. client.
zone("example.com") zone("example.com").
.
record("old-service") record("old-service").
.
delete(RecordType.A, RecordType.AAAA); delete(RecordType.A, RecordType.AAAA);
``` ```
@@ -493,11 +491,9 @@ CfDnsClient client = new CfDnsClient("email@example.com", "yourApiKey");
// Create a new record // Create a new record
client. client.
zone("example.com") zone("example.com").
.
record("api") record("api").
.
create(RecordType.A, "192.168.100.1",60); create(RecordType.A, "192.168.100.1",60);
@@ -514,22 +510,18 @@ getContent());
// Update the record // Update the record
client. client.
zone("example.com") zone("example.com").
.
record("api",RecordType.A) record("api",RecordType.A).
.
update("192.168.100.2"); update("192.168.100.2");
// Clean up // Clean up
client. client.
zone("example.com") zone("example.com").
.
record("api") record("api").
.
delete(RecordType.A); delete(RecordType.A);
``` ```