mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-12-16 21:58:50 +08:00
Remove unused --depopulate flag (#3843)
This commit is contained in:
parent
bdf8bef203
commit
3bf0c5a318
1 changed files with 5 additions and 10 deletions
|
|
@ -12,6 +12,11 @@ import (
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/nozzle/throttler"
|
||||||
|
"github.com/urfave/cli/v2"
|
||||||
|
"golang.org/x/exp/slices"
|
||||||
|
"golang.org/x/net/idna"
|
||||||
|
|
||||||
"github.com/StackExchange/dnscontrol/v4/models"
|
"github.com/StackExchange/dnscontrol/v4/models"
|
||||||
"github.com/StackExchange/dnscontrol/v4/pkg/bindserial"
|
"github.com/StackExchange/dnscontrol/v4/pkg/bindserial"
|
||||||
"github.com/StackExchange/dnscontrol/v4/pkg/credsfile"
|
"github.com/StackExchange/dnscontrol/v4/pkg/credsfile"
|
||||||
|
|
@ -22,10 +27,6 @@ import (
|
||||||
"github.com/StackExchange/dnscontrol/v4/pkg/rfc4183"
|
"github.com/StackExchange/dnscontrol/v4/pkg/rfc4183"
|
||||||
"github.com/StackExchange/dnscontrol/v4/pkg/zonerecs"
|
"github.com/StackExchange/dnscontrol/v4/pkg/zonerecs"
|
||||||
"github.com/StackExchange/dnscontrol/v4/providers"
|
"github.com/StackExchange/dnscontrol/v4/providers"
|
||||||
"github.com/nozzle/throttler"
|
|
||||||
"github.com/urfave/cli/v2"
|
|
||||||
"golang.org/x/exp/slices"
|
|
||||||
"golang.org/x/net/idna"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type cmdZoneCache struct {
|
type cmdZoneCache struct {
|
||||||
|
|
@ -55,7 +56,6 @@ type PPreviewArgs struct {
|
||||||
ConcurMode string
|
ConcurMode string
|
||||||
ConcurMax int // Maximum number of concurrent connections
|
ConcurMax int // Maximum number of concurrent connections
|
||||||
NoPopulate bool
|
NoPopulate bool
|
||||||
DePopulate bool
|
|
||||||
PopulateOnPreview bool
|
PopulateOnPreview bool
|
||||||
Report string
|
Report string
|
||||||
Full bool
|
Full bool
|
||||||
|
|
@ -114,11 +114,6 @@ func (args *PPreviewArgs) flags() []cli.Flag {
|
||||||
Destination: &args.NoPopulate,
|
Destination: &args.NoPopulate,
|
||||||
Usage: `Do not auto-create zones at the provider`,
|
Usage: `Do not auto-create zones at the provider`,
|
||||||
})
|
})
|
||||||
flags = append(flags, &cli.BoolFlag{
|
|
||||||
Name: "depopulate",
|
|
||||||
Destination: &args.NoPopulate,
|
|
||||||
Usage: `Delete unknown zones at provider (dangerous!)`,
|
|
||||||
})
|
|
||||||
flags = append(flags, &cli.BoolFlag{
|
flags = append(flags, &cli.BoolFlag{
|
||||||
Name: "populate-on-preview",
|
Name: "populate-on-preview",
|
||||||
Destination: &args.PopulateOnPreview,
|
Destination: &args.PopulateOnPreview,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue