mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
@ -52,6 +52,7 @@ var _ = cmd(catMain, func() *cli.Command {
|
||||
}
|
||||
}())
|
||||
|
||||
// PushArgs contains all data/flags needed to run push, independently of CLI
|
||||
type PushArgs struct {
|
||||
PreviewArgs
|
||||
Interactive bool
|
||||
@ -67,10 +68,12 @@ func (args *PushArgs) flags() []cli.Flag {
|
||||
return flags
|
||||
}
|
||||
|
||||
// Preview implements the preview subcommand.
|
||||
func Preview(args PreviewArgs) error {
|
||||
return run(args, false, false, printer.ConsolePrinter{})
|
||||
}
|
||||
|
||||
// Push implements the push subcommand.
|
||||
func Push(args PushArgs) error {
|
||||
return run(args.PreviewArgs, true, args.Interactive, printer.ConsolePrinter{})
|
||||
}
|
||||
|
Reference in New Issue
Block a user