Documentation
¶
Index ¶
- func Generate(dir string, functionPath string) error
- func InitViper(cmd *cobra.Command) error
- func NewCloneCmd() *cobra.Command
- func NewGenerateCmd() *cobra.Command
- func NewHydrosServerCmd() *cobra.Command
- func NewTakeOverCmd() *cobra.Command
- func TakeOver(args *TakeOverArgs) error
- type CloneConfig
- type TakeOverArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitViper ¶
InitViper reads in config file and ENV variables if set. The results are stored inside viper. Call GetConfig to get a configuration. The cmd is passed in so we can bind to command flags
func NewGenerateCmd ¶
func NewHydrosServerCmd ¶
NewHydrosServerCmd creates a command to run the server
func NewTakeOverCmd ¶
func TakeOver ¶
func TakeOver(args *TakeOverArgs) error
Types ¶
type CloneConfig ¶
type CloneConfig struct {
Repos []string `json:"repos" yaml:"repos"`
}
func GetConfig ¶
func GetConfig() *CloneConfig
GetConfig returns the configuration instantiated from the viper configuration.
Click to show internal directories.
Click to hide internal directories.