cmd

package
v0.46.4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(rootCmd *cobra.Command, envPrefix string, defaultHome string) error

Execute executes the root command of an application. It handles creating a server context object with the appropriate server and client objects injected into the underlying stdlib Context. It also handles adding core CLI flags, specifically the logging flags. It returns an error upon execution failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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