Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetParamB ¶
getParamB returns a parameter as a string and a boolean to tell if it is different from the default
NOTE: we could simply bind the flags to viper and use IsSet. Although there is a bug on Viper that always returns true on IsSet if a flag is binded. Our alternative way is to manually check the flag and then the value from env/config/gotten by viper. https://github.com/spf13/viper/pull/331
Types ¶
type CobraFunc ¶
func Python ¶
func Python(fn PythonFunc, cfg PythonConfig) CobraFunc
type PythonConfig ¶
type PythonData ¶
type PythonFunc ¶
type PythonFunc func(cmd *cobra.Command, args []string, data PythonData)
Click to show internal directories.
Click to hide internal directories.