WIP: domain listing with Gandi

Rethinking the interface already.
This commit is contained in:
2021-10-18 22:16:29 +02:00
parent 7ea3df45d4
commit 597b4b586e
10 changed files with 161 additions and 145 deletions

32
cli/domain/domain.go Normal file
View File

@ -0,0 +1,32 @@
package domain
import (
"github.com/urfave/cli/v2"
)
// DomainCommand supports managing DNS entries.
var DomainCommand = &cli.Command{
Name: "domain",
Usage: "Manage domains via 3rd party providers",
Aliases: []string{"d"},
ArgsUsage: "<domain>",
Description: `
This command supports managing DNS records via 3rd party providers such as
Gandi DNS. It supports listing, creating, updating and removing all types of
DNS records that you might need to manage for managing Co-op Cloud apps.
The following providers are supported:
Gandi DNS https://www.gandi.net
Any new provider can be integrated, we welcome change sets. See the underlying
DNS library documentation for more. It supports many existing providers and
allows to implement new provider support easily.
https://pkg.go.dev/github.com/libdns/libdns
`,
Subcommands: []*cli.Command{
DomainListCommand,
},
}