docs: more domain command docs hacking

This commit is contained in:
decentral1se 2021-10-20 00:05:49 +02:00
parent 0110aceb1f
commit 7d8c53299d
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 11 additions and 8 deletions

View File

@ -11,14 +11,18 @@ var DomainCommand = &cli.Command{
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 for managing Co-op Cloud apps.
This command supports managing domain name records via 3rd party providers such
as Gandi DNS. It supports listing, creating, updating and removing all types of
records that you might need for managing Co-op Cloud apps.
The following providers are supported:
Gandi DNS https://www.gandi.net
You need an account with such a provider already. Typically, you need to
provide an API token on the Abra command-line when using these commands so that
you can authenticate with your provider account.
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.

View File

@ -16,18 +16,17 @@ import (
// DomainListCommand lists domains.
var DomainListCommand = &cli.Command{
Name: "list",
Usage: "List domains",
Usage: "List domain name records for a zone",
Aliases: []string{"ls"},
ArgsUsage: "<zone>",
Flags: []cli.Flag{
internal.DNSProviderFlag,
},
Description: `
This command lists all domains managed by a 3rd party provider.
This command lists all domain name records managed by a 3rd party provider.
You must specify a zone (e.g. example.com) under which your DNS entries are
listed. This zone must already be created via the provider web interface or
using "abra domain create".
You must specify a zone (e.g. example.com) under which your domain name records
are listed. This zone must already be created on your provider account.
`,
Action: func(c *cli.Context) error {
zone := c.Args().First()