MCPcopy
hub / github.com/DNSControl/dnscontrol / CLI

Interface CLI

pkg/printer/printer.go:14–26  ·  view source on GitHub ↗

CLI is an abstraction around the CLI.

Source from the content-addressed store, hash-verified

12
13// CLI is an abstraction around the CLI.
14type CLI interface {
15 Printer
16 StartDomain(dc *models.DomainConfig)
17 StartDNSProvider(name string, skip bool)
18 EndProvider(name string, numCorrections int, err error)
19 EndProvider2(name string, numCorrections int)
20 StartRegistrar(name string, skip bool)
21
22 PrintCorrection(n int, c *models.Correction)
23 PrintReport(n int, c *models.Correction) // Print corrections that are diff2.REPORT
24 EndCorrection(err error)
25 PromptToRun() bool
26}
27
28// Printer is a simple abstraction for printing data. Can be passed to providers to give simple output capabilities.
29type Printer interface {

Callers 8

prunFunction · 0.65
prunFunction · 0.65
prunFunction · 0.65
prunFunction · 0.65
pprintOrRunCorrectionsFunction · 0.65
pprintOrRunCorrectionsFunction · 0.65
pprintOrRunCorrectionsFunction · 0.65
pprintOrRunCorrectionsFunction · 0.65

Implementers 1

ConsolePrinterpkg/printer/printer.go

Calls

no outgoing calls

Tested by

no test coverage detected