cli

package
v0.24.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 348

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cmd *cobra.Command) int

Run provides the common boilerplate code around executing a cobra command. For example, it ensures that logging is set up properly. Logging flags get added to the command line if not added already. Flags get normalized so that help texts show them with hyphens. Underscores are accepted as alternative for the command parameters.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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