Pārlūkot izejas kodu

pre-commit

master
Chris Smith 5 gadus atpakaļ
vecāks
revīzija
834702c6a6
2 mainītis faili ar 9 papildinājumiem un 1 dzēšanām
  1. 8
    0
      README.adoc
  2. 1
    1
      templates/domains.txt.tpl

+ 8
- 0
README.adoc Parādīt failu

@@ -67,3 +67,11 @@ The port on which the container is listening for requests.
67 67
 Comma- or space-delimited list of hostnames that the container will handle requests for.
68 68
 Certificates will have the first host as the subject, and any additional hosts will be
69 69
 alternate names. Certificates are only reused if all hostnames match.
70
+
71
+== Contributing
72
+
73
+There is a [pre-commit](https://pre-commit.com/) to go fmt and run basic checks on
74
+commit; to enable it simply:
75
+
76
+    pip install pre-commit
77
+    pre-commit install

+ 1
- 1
templates/domains.txt.tpl Parādīt failu

@@ -1,3 +1,3 @@
1 1
 {{ range .Hostnames }}
2 2
     {{- .Name }}{{ range $san, $true := .Alternatives }} {{ $san }}{{ end }}
3
-{{ end }}
3
+{{ end }}

Notiek ielāde…
Atcelt
Saglabāt