From 5098e171721d7fa2e5a30dd79dbd383f28950d6f Mon Sep 17 00:00:00 2001 From: Thilo Schwarz Date: Tue, 6 Jan 2026 13:50:30 +0100 Subject: [PATCH] Simplify `README` examples by combining line continuations, improving method chaining clarity, and standardizing formatting for batch DNS operations. --- README.md | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index b765985..6f812f9 100644 --- a/README.md +++ b/README.md @@ -449,10 +449,10 @@ that reduces verbosity and improves code readability. ```java // Create a DNS record client.zone("example.com") - . + . record("api") - . + . create(RecordType.A, "192.168.1.1",60); @@ -469,11 +469,9 @@ RecordEntity updated = client.zone("example.com") // Delete DNS records client. -zone("example.com") - . +zone("example.com"). -record("old-service") - . +record("old-service"). delete(RecordType.A, RecordType.AAAA); ``` @@ -493,11 +491,9 @@ CfDnsClient client = new CfDnsClient("email@example.com", "yourApiKey"); // Create a new record client. -zone("example.com") - . +zone("example.com"). -record("api") - . +record("api"). create(RecordType.A, "192.168.100.1",60); @@ -514,22 +510,18 @@ getContent()); // Update the record client. -zone("example.com") - . +zone("example.com"). -record("api",RecordType.A) - . +record("api",RecordType.A). update("192.168.100.2"); // Clean up client. -zone("example.com") - . +zone("example.com"). -record("api") - . +record("api"). delete(RecordType.A); ```