mithri

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(parentCmd *cobra.Command, defaults map[string]interface{}, appConfig interface{}, cmdName string)

Adds a cobra.Command for reading and writing configs. Sets PersistentFlags on parentCmd (usually rootCmd) to config options.

func InitConfig

func InitConfig(config *Config) (*viper.Viper, error)

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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