Documentation ¶
Index ¶
- Constants
- Variables
- func CheckDirectoryNotPresent(outDir string) error
- func DiscoverFunctions(cmd *cobra.Command) []v1alpha1.Function
- func FixDocs(old, new string, c *cobra.Command)
- func GetKeywordsFromFlag(cmd *cobra.Command) []string
- func PrintErrorStacktrace() bool
- func SuggestFunctions(cmd *cobra.Command) []string
- func SuggestKeywords(cmd *cobra.Command) []string
- func WriteFnOutput(dest, content string, fromStdin bool, w io.Writer) error
- func WriteToOutput(r io.Reader, w io.Writer, outDir string) error
Constants ¶
View Source
const ( StackTraceOnErrors = "COBRA_STACK_TRACE_ON_ERRORS" Stdout = "stdout" Unwrap = "unwrap" FunctionsCatalogURL = "https://catalog.kpt.dev/catalog-v2.json" )
Variables ¶
View Source
var StackOnError bool
StackOnError if true, will print a stack trace on failure.
Functions ¶
func CheckDirectoryNotPresent ¶
CheckDirectoryNotPresent returns error if the directory already exists
func GetKeywordsFromFlag ¶
func PrintErrorStacktrace ¶ added in v0.34.0
func PrintErrorStacktrace() bool
func SuggestFunctions ¶
SuggestFunctions looks for functions from kpt curated catalog list as well as the Porch orchestrator to suggest functions.
func SuggestKeywords ¶
SuggestKeywords looks for all the unique keywords from Porch functions. This keywords can later help users to select functions.
func WriteFnOutput ¶
WriteFnOutput writes the output resources of function commands to provided destination
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.