Documentation
¶
Index ¶
- func Execute(args []string) (err error)
- func VersionString() string
- type AuthCmd
- type AuthRemoveCmd
- type AuthSetKeyCmd
- type AuthStatusCmd
- type CLI
- type DevicesCmd
- type DevicesListCmd
- type ExitError
- type HostsCmd
- type HostsGetCmd
- type HostsListCmd
- type ISPMetricsCmd
- type ISPMetricsGetCmd
- type RootFlags
- type SitesCmd
- type SitesListCmd
- type VersionCmd
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthCmd ¶
type AuthCmd struct {
SetKey AuthSetKeyCmd `cmd:"" help:"Set API key (uses --stdin by default)"`
Status AuthStatusCmd `cmd:"" help:"Show authentication status"`
Remove AuthRemoveCmd `cmd:"" help:"Remove stored credentials"`
}
type AuthRemoveCmd ¶
type AuthRemoveCmd struct{}
type AuthSetKeyCmd ¶
type AuthStatusCmd ¶
type AuthStatusCmd struct{}
type CLI ¶
type CLI struct {
RootFlags `embed:""`
Version kong.VersionFlag `help:"Print version and exit"`
Auth AuthCmd `cmd:"" help:"Auth and credentials"`
Hosts HostsCmd `cmd:"" help:"Host (console) operations"`
Sites SitesCmd `cmd:"" help:"Site operations"`
Devices DevicesCmd `cmd:"" help:"Device operations"`
ISPMetrics ISPMetricsCmd `cmd:"" name:"isp-metrics" help:"ISP performance metrics"`
VersionCmd VersionCmd `cmd:"" name:"version" help:"Print version"`
}
CLI is the root Kong command structure.
type DevicesCmd ¶
type DevicesCmd struct {
List DevicesListCmd `cmd:"" help:"List all devices"`
}
type DevicesListCmd ¶
type HostsCmd ¶
type HostsCmd struct {
List HostsListCmd `cmd:"" help:"List all hosts"`
Get HostsGetCmd `cmd:"" help:"Get host by ID"`
}
type HostsGetCmd ¶
type HostsGetCmd struct {
ID string `arg:"" required:"" help:"Host ID"`
}
type HostsListCmd ¶
type HostsListCmd struct {
PageSize int `help:"Number of results per page" name:"page-size" default:"0"`
}
type ISPMetricsCmd ¶
type ISPMetricsCmd struct {
Get ISPMetricsGetCmd `cmd:"" help:"Get ISP performance metrics"`
}
type ISPMetricsGetCmd ¶
type RootFlags ¶
type RootFlags struct {
Color string `help:"Color output: auto|always|never" default:"${color}"`
JSON bool `help:"Output JSON to stdout (best for scripting)" default:"${json}"`
Plain bool `help:"Output stable, parseable text to stdout (TSV; no colors)" default:"${plain}"`
Force bool `help:"Skip confirmations for destructive commands"`
NoInput bool `help:"Never prompt; fail instead (useful for CI)"`
Verbose bool `help:"Enable verbose logging"`
}
RootFlags holds global CLI flags.
type SitesCmd ¶
type SitesCmd struct {
List SitesListCmd `cmd:"" help:"List all sites"`
}
type SitesListCmd ¶
type SitesListCmd struct {
PageSize int `help:"Number of results per page" name:"page-size" default:"0"`
}
Click to show internal directories.
Click to hide internal directories.