util

package
v0.0.0-...-88bc37c Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2018 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserConfDir string

Functions

func ExampleMergeTemplateOptions

func ExampleMergeTemplateOptions(baseCmd string) string

ExampleMergeTemplateOptions returns the example for command line options proceeded by MergeTemplateParams().

func FetchTemplate

func FetchTemplate(templateSlug string) (*registry.RegistryTemplate, error)

func MergeTemplateParams

func MergeTemplateParams(rt *registry.RegistryTemplate, args []string) model.ResourceTemplate

MergeTemplateParams returns the value merged resource template. The value source is read from JSON string, file, stdin or command line options.

func PreRunHelpFlagCheckAndQuit

func PreRunHelpFlagCheckAndQuit(cmd *cobra.Command, args []string) error

PreRunHelpFlagCheckAndQuit can use cobra.Command with "DisableFlagParsing=true" to show usage and quit for -h or --help command line option.

&cobra.Command {
  DisableFlagParsing: true,
	 PreRunE:            util.PreRunHelpFlagCheckAndQuit,
}

func RemoteCall

func RemoteCall(c func(*grpc.ClientConn) error) error

func SetupGithubRegistryCache

func SetupGithubRegistryCache() (registry.TemplateFinder, error)

func TemplateFinder

func TemplateFinder(templateSlug string) (registry.TemplateFinder, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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