mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-09-09 06:35:29 +08:00
Fix headings in docs/get-zones.md
This commit is contained in:
parent
1232c17293
commit
938abd7b76
1 changed files with 4 additions and 4 deletions
|
@ -61,20 +61,20 @@ This command is not implemented for all providers.
|
||||||
|
|
||||||
To add this to a provider:
|
To add this to a provider:
|
||||||
|
|
||||||
1. Document the feature
|
**Step 1. Document the feature**
|
||||||
|
|
||||||
In the `*Provider.go` file, change the setting to implemented.
|
In the `*Provider.go` file, change the setting to implemented.
|
||||||
|
|
||||||
* OLD: ` providers.CanGetZones: providers.Unimplemented(),`
|
* OLD: ` providers.CanGetZones: providers.Unimplemented(),`
|
||||||
* NEW: ` providers.CanGetZones: providers.Can(),`
|
* NEW: ` providers.CanGetZones: providers.Can(),`
|
||||||
|
|
||||||
2. Update the docs
|
**Step 2. Update the docs**
|
||||||
|
|
||||||
```
|
```
|
||||||
go generate
|
go generate
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Implement the `GetZoneRecords` function
|
**Step 3. Implement the `GetZoneRecords` function**
|
||||||
|
|
||||||
Find the `GetZoneRecords` function in the `*Provider.go` file.
|
Find the `GetZoneRecords` function in the `*Provider.go` file.
|
||||||
|
|
||||||
|
@ -90,7 +90,7 @@ than having it be burried in the middle of `GetDomainCorrections`.
|
||||||
|
|
||||||
Once that is done the `get-zone` subcommand should work.
|
Once that is done the `get-zone` subcommand should work.
|
||||||
|
|
||||||
4. Optionally implemement the `ListZones` function
|
**Step 4. Optionally implemement the `ListZones` function**
|
||||||
|
|
||||||
If the `ListZones` function is implemented, the "all" special case
|
If the `ListZones` function is implemented, the "all" special case
|
||||||
will be activated. In this case, listing a single zone named `all`
|
will be activated. In this case, listing a single zone named `all`
|
||||||
|
|
Loading…
Add table
Reference in a new issue