cmd

package
v1.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 22 Imported by: 0

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"
	CmdDeleteAllRoutes     = "delete-all-routes"
	CmdDeleteAllDnsRouting = "delete-all-dns-routing"
	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"}
	AliasesDeleteAllRoutes     = []string{"deleteallroutes", "dar"}
	AliasesDeleteAllDnsRouting = []string{"deletealldnsrouting", "dadnsr"}
	AliasesDeleteKnownHosts    = []string{"deleteknownhosts", "dkh"}
	AliasesExec                = []string{"e"}
	AliasesScheduler           = []string{"schedule", "sched"}
)

Command aliases

Functions

func NewRootCmd

func NewRootCmd() *cobra.Command

func RestoreCursor

func RestoreCursor()

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL