Documentation
¶
Index ¶
Constants ¶
View Source
const ( CmdAddRoutes = "add-routes" CmdDeleteRoutes = "delete-routes" CmdShowInterfaces = "show-interfaces" CmdAddAwg = "add-awg" CmdUpdateAwg = "update-awg" CmdAddDnsRecords = "add-dns-records" CmdDeleteDnsRecords = "delete-dns-records" CmdAddDnsRouting = "add-dns-routing" CmdDeleteDnsRouting = "delete-dns-routing" CmdDeleteKnownHosts = "delete-known-hosts" CmdExec = "exec" CmdScheduler = "scheduler" CmdVersion = "version" )
Command names
View Source
const ( CmdCompletion = "completion" CmdHelp = "help" )
Built-in commands that should skip initialization
View Source
const ( StrategySequential = "sequential" StrategyParallel = "parallel" )
Scheduler execution strategies
Variables ¶
View Source
var ( AliasesAddRoutes = []string{"addroutes", "ar"} AliasesDeleteRoutes = []string{"deleteroutes", "dr"} AliasesShowInterfaces = []string{"showinterfaces", "si", "showinterface", "show-interface"} AliasesAddAwg = []string{"addawg", "aawg"} AliasesUpdateAwg = []string{"updateawg", "uawg"} AliasesAddDnsRecords = []string{"adddnsrecords", "adr"} AliasesDeleteDnsRecords = []string{"deletednsrecords", "ddr"} AliasesAddDnsRouting = []string{"adddnsrouting", "adnsr", "adddnsroutes", "add-dns-routes"} AliasesDeleteDnsRouting = []string{"deletednsrouting", "ddnsr", "deletednsroutes", "delete-dns-routes"} AliasesDeleteKnownHosts = []string{"deleteknownhosts", "dkh"} AliasesExec = []string{"e"} AliasesScheduler = []string{"schedule", "sched"} )
Command aliases
Functions ¶
func NewRootCmd ¶
func RestoreCursor ¶
func RestoreCursor()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.