Documentation ¶
Index ¶
- func CSVArrayFlag(cmd *cobra.Command, flag string, trimSpace bool) (results [][]string, err error)
- func CSVFlag(cmd *cobra.Command, flag string) ([]string, error)
- func Check(err error)
- func CheckWithMessage(err error, message string)
- func EditYamlInEditor(objectName string, content string) (string, error)
- func Exit(code int)
- func Fail(message string)
- func GetProjectId(name string) string
- func InferProjectName() (string, error)
- func ParseFileFlag(raw string) (string, string, error)
- func ParseYamlResourceHeaders(raw []byte) (string, string, error)
- func RelativeAgeForHumans(timestamp int64) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSVArrayFlag ¶
func Check ¶
func Check(err error)
Checks if an error is present.
If it is present, it displays the error and exits with status 1.
If you want to display a custom message use CheckWithMessage.
func CheckWithMessage ¶
Checks if an error is present.
If it is present, it displays the provided message and exits with status 1.
func GetProjectId ¶
func InferProjectName ¶
func ParseYamlResourceHeaders ¶
returns tuple (apiVersion, kind, error)
func RelativeAgeForHumans ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.