cmd

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecWrapper

func ExecWrapper(f func(ctx *cli.Context) (int, error)) cli.ActionFunc

ExecWrapper gracefully logs and exits our `run` functions. It wraps a function returning (int, error) into a `cli.ActionFunc` compatible with urfave/cli.

func Monitor

func Monitor(ctx *cli.Context) (int, error)

Monitor starts the internal monitoring UI.

func Run

func Run(cliCtx *cli.Context) (int, error)

Run launches the exporter.

func Validate

func Validate(cliCtx *cli.Context) (int, error)

Validate checks whether the application configuration is valid. It takes a CLI context (typically from urfave/cli) as input. Returns an exit code (int) and an error if validation fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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