cli

package
v0.73.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 25 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert added in v0.46.0

func New

func New() (*cobra.Command, error)

Because of how the `cobra` library behaves, the application's configuration is initialized at this level. Values from the config should only be used after `app.LoadAllValues` has been called. Cobra does not have knowledge of the user provided flags until the `RunE` block of each command. `RunE` is the earliest that the complete application configuration can be loaded.

func PowerUser

func PowerUser(v *viper.Viper, app *config.Application, ro *options.RootOptions) *cobra.Command

func Version

func Version(v *viper.Viper, app *config.Application) *cobra.Command

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