cmd

package
v0.47.14 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 7 Imported by: 1,230

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateExecuteContext added in v0.47.0

func CreateExecuteContext(ctx context.Context) context.Context

CreateExecuteContext returns a base Context with server and client context values initialized.

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