Documentation ¶
Index ¶
- func InitViper(cmd *cobra.Command) error
- func NewApplyCmd() *cobra.Command
- func NewBuildCmd() *cobra.Command
- func NewCloneCmd() *cobra.Command
- func NewHydrosServerCmd() *cobra.Command
- func NewTakeOverCmd() *cobra.Command
- func TakeOver(args *TakeOverArgs) error
- type BuildArgs
- 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 NewApplyCmd ¶ added in v0.0.3
NewApplyCmd create an apply command
func NewBuildCmd ¶ added in v0.0.2
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.