Add 'manual' provider to the output of dnshelp (#825)
This commit is contained in:
parent
5e741000cc
commit
0c87df143e
2 changed files with 12 additions and 4 deletions
|
@ -6,6 +6,7 @@ package cmd
|
|||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
"text/tabwriter"
|
||||
|
||||
|
@ -13,7 +14,8 @@ import (
|
|||
)
|
||||
|
||||
func allDNSCodes() string {
|
||||
return strings.Join([]string{
|
||||
providers := []string{
|
||||
"manual",
|
||||
"acme-dns",
|
||||
"alidns",
|
||||
"auroradns",
|
||||
|
@ -67,7 +69,9 @@ func allDNSCodes() string {
|
|||
"vscale",
|
||||
"vultr",
|
||||
"zoneee",
|
||||
}, ", ")
|
||||
}
|
||||
sort.Strings(providers)
|
||||
return strings.Join(providers, ", ")
|
||||
}
|
||||
|
||||
func displayDNSHelp(name string) {
|
||||
|
|
|
@ -6,6 +6,7 @@ package cmd
|
|||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sort"
|
||||
"strings"
|
||||
"text/tabwriter"
|
||||
|
||||
|
@ -13,11 +14,14 @@ import (
|
|||
)
|
||||
|
||||
func allDNSCodes() string {
|
||||
return strings.Join([]string{
|
||||
providers := []string{
|
||||
"manual",
|
||||
{{- range $provider := .Providers }}
|
||||
"{{ $provider.Code }}",
|
||||
{{- end}}
|
||||
}, ", ")
|
||||
}
|
||||
sort.Strings(providers)
|
||||
return strings.Join(providers, ", ")
|
||||
}
|
||||
|
||||
func displayDNSHelp(name string) {
|
||||
|
|
Loading…
Reference in a new issue