commands

package
v0.0.1-pre1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(dir string, functionPath string) error

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 NewCloneCmd

func NewCloneCmd() *cobra.Command

NewCloneCmd create a clone command

func NewGenerateCmd

func NewGenerateCmd() *cobra.Command

func NewHydrosServerCmd

func NewHydrosServerCmd() *cobra.Command

NewHydrosServerCmd creates a command to run the server

func NewTakeOverCmd

func NewTakeOverCmd() *cobra.Command

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.

type TakeOverArgs

type TakeOverArgs struct {
	WorkDir     string
	Secret      string
	GithubAppID int64
	Force       bool
	File        string
	KeyFile     string
	RepoDir     string
}

Jump to

Keyboard shortcuts

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