mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-11-10 16:30:38 +08:00
parent
aca618a90b
commit
c6e956aa43
2 changed files with 6 additions and 8 deletions
|
|
@ -31,9 +31,8 @@ type zoneCache struct {
|
||||||
var _ = cmd(catMain, func() *cli.Command {
|
var _ = cmd(catMain, func() *cli.Command {
|
||||||
var args PPreviewArgs
|
var args PPreviewArgs
|
||||||
return &cli.Command{
|
return &cli.Command{
|
||||||
Name: "preview",
|
Name: "ppreview",
|
||||||
Aliases: []string{"ppreview"},
|
Usage: "read live configuration and identify changes to be made, without applying them",
|
||||||
Usage: "read live configuration and identify changes to be made, without applying them",
|
|
||||||
Action: func(ctx *cli.Context) error {
|
Action: func(ctx *cli.Context) error {
|
||||||
return exit(PPreview(args))
|
return exit(PPreview(args))
|
||||||
},
|
},
|
||||||
|
|
@ -123,9 +122,8 @@ func (args *PPreviewArgs) flags() []cli.Flag {
|
||||||
var _ = cmd(catMain, func() *cli.Command {
|
var _ = cmd(catMain, func() *cli.Command {
|
||||||
var args PPushArgs
|
var args PPushArgs
|
||||||
return &cli.Command{
|
return &cli.Command{
|
||||||
Name: "push",
|
Name: "ppush",
|
||||||
Aliases: []string{"ppush"},
|
Usage: "identify changes to be made, and perform them",
|
||||||
Usage: "identify changes to be made, and perform them",
|
|
||||||
Action: func(ctx *cli.Context) error {
|
Action: func(ctx *cli.Context) error {
|
||||||
return exit(PPush(args))
|
return exit(PPush(args))
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ import (
|
||||||
var _ = cmd(catMain, func() *cli.Command {
|
var _ = cmd(catMain, func() *cli.Command {
|
||||||
var args PreviewArgs
|
var args PreviewArgs
|
||||||
return &cli.Command{
|
return &cli.Command{
|
||||||
Name: "oldpreview",
|
Name: "preview",
|
||||||
Usage: "read live configuration and identify changes to be made, without applying them",
|
Usage: "read live configuration and identify changes to be made, without applying them",
|
||||||
Action: func(ctx *cli.Context) error {
|
Action: func(ctx *cli.Context) error {
|
||||||
return exit(Preview(args))
|
return exit(Preview(args))
|
||||||
|
|
@ -98,7 +98,7 @@ func (args *PreviewArgs) flags() []cli.Flag {
|
||||||
var _ = cmd(catMain, func() *cli.Command {
|
var _ = cmd(catMain, func() *cli.Command {
|
||||||
var args PushArgs
|
var args PushArgs
|
||||||
return &cli.Command{
|
return &cli.Command{
|
||||||
Name: "oldpush",
|
Name: "push",
|
||||||
Usage: "identify changes to be made, and perform them",
|
Usage: "identify changes to be made, and perform them",
|
||||||
Action: func(ctx *cli.Context) error {
|
Action: func(ctx *cli.Context) error {
|
||||||
return exit(Push(args))
|
return exit(Push(args))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue