commands

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitViper

func InitViper(cmd *cobra.Command) error

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

func NewApplyCmd() *cobra.Command

NewApplyCmd create an apply command

func NewBuildCmd added in v0.0.2

func NewBuildCmd() *cobra.Command

func NewCloneCmd

func NewCloneCmd() *cobra.Command

NewCloneCmd create a clone command

func NewHydrosServerCmd

func NewHydrosServerCmd() *cobra.Command

NewHydrosServerCmd creates a command to run the server

func NewTakeOverCmd

func NewTakeOverCmd() *cobra.Command

func NewVersionCmd added in v0.0.5

func NewVersionCmd(name string, w io.Writer) *cobra.Command

func TakeOver

func TakeOver(args *TakeOverArgs) error

Types

type BuildArgs added in v0.0.2

type BuildArgs struct {
	File string
}

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.

type TakeOverArgs

type TakeOverArgs struct {
	WorkDir     string
	Secret      string
	GithubAppID int64
	Force       bool
	File        string
	KeyFile     string
	RepoDir     string
	Pause       time.Duration
}

Jump to

Keyboard shortcuts

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