cmdutil

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() *generator.Config

GetConfig gets the values from ./config/config.yaml and parses them into a Config struct.

func GetCurrPkg added in v0.0.7

func GetCurrPkg() string

GetCurrPkg returns the current directory's import path e.g: "github.com/example-inc/app-operator"

func MustInProjectRoot

func MustInProjectRoot()

MustInProjectRoot checks if the current dir is the project root.

Types

type OperatorType added in v0.0.7

type OperatorType int
const (
	OperatorTypeGo OperatorType = iota
	OperatorTypeAnsible
)

func GetOperatorType added in v0.0.7

func GetOperatorType() OperatorType

GetOperatorType returns type of operator is in cwd This function should be called after verifying the user is in project root e.g: "go", "ansible"

Jump to

Keyboard shortcuts

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