cli

package
v0.0.0-...-0710af2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, _ *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