Tls directive curiosity

(J. Scott Elblein) #1

Just editing my Caddfile and was just curious why:

We can’t just put the tls dns on a single line?

i.e.
tls dns cloudflare

Instead, it must be enclosed in a block for a single directive:

tls {
    dns cloudflare
}

and/or:

We can’t include the tls email within the tls block?

i.e.

tls {
    dns cloudflare
    email mymail@gmail.com
}

Instead of having to make it it’s own, single directive:

tls myemail@gmail.com

Currently, my tls code looks like this, which as a coder who get slightly OCD about tidiness (lol) makes me itchy all over the place. :stuck_out_tongue:

 tls {
    dns cloudflare
 }

tls myemail@gmail.com
(Toby Allen) #2

This is really just the way the directive evolved. We are always happy with pull requests

(J. Scott Elblein) #3

Ah, I see. I’d love to but I’ve never developed a single lick of Go. lol