cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package cmd represents the discovery client command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	Globals
	Alerts  alertCmd  `cmd:"" help:"Show alerts." aliases:"a"`
	Targets targetCmd `cmd:"" help:"Show targets." aliases:"t"`
	Server  serverCmd `cmd:"" help:"Start a web server running the Prometheus React UI."`
}

CLI is the client command.

type Globals

type Globals struct {
	PrometheusURLs []string         `short:"u" name:"prometheus-urls" help:"A comma separated list of prometheus base URLs." default:"http://localhost:9090"`
	ShowConfig     king.ShowConfig  `help:"Show used config files"`
	Version        king.VersionFlag `help:"Show version information"`
	Debug          bool             `short:"d" help:"Show debug output." `
	Timeout        time.Duration    `help:"The http request timeout." default:"20s"`
}

Globals are the global client flags.

Jump to

Keyboard shortcuts

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