cmd

package
v0.0.0-...-0e9b45f Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: Apache-2.0 Imports: 19 Imported by: 2

Documentation

Index

Constants

View Source
const (
	JAVA_EXT = ".jar"
	ZIP_EXT  = ".zip"
	JAVA     = "java"
)
View Source
const (
	FLAG_CONFIG           = "config"
	FLAG_PROJECT          = "project"
	FLAG_PROJECT_SHORT    = "p"
	FLAG_MANIFEST         = "manifest"
	FLAG_MANIFEST_SHORT   = "m"
	FLAG_DEPLOYMENT       = "deployment"
	FLAG_DEPLOYMENT_SHORT = "d"
	FLAG_STRICT           = "strict"
	FLAG_STRICT_SHORT     = "s"
	FLAG_PREVIEW          = "preview"
	FLAG_VERBOSE          = "verbose"
	FLAG_VERBOSE_SHORT    = "v"
	FLAG_API_HOST         = "apihost"
	FLAG_NAMESPACE        = "namespace"
	FLAG_NAMESPACE_SHORT  = "n"
	FLAG_AUTH             = "auth"
	FLAG_AUTH_SHORT       = "u"
	FLAG_APIVERSION       = "apiversion"
	FLAG_KEY              = "key"
	FLAG_KEY_SHORT        = "k"
	FLAG_CERT             = "cert"
	FLAG_CERT_SHORT       = "c"
	FLAG_MANAGED          = "managed"
	FLAG_PROJECTNAME      = "projectname"
	FLAG_TRACE            = "trace"
	FLAG_TRACE_SHORT      = "t"
	FLAG_PARAM            = "param"
	FLAG_PARAMFILE        = "param-file"
	FLAG_PARAMFILE_SHORT  = "P"
	SHORT_CMD             = "-"
	LONG_CMD              = SHORT_CMD + SHORT_CMD
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:           "wskdeploy",
	SilenceErrors: true,
	SilenceUsage:  true,
	Short:         wski18n.T(wski18n.ID_CMD_DESC_SHORT_ROOT),
	Long:          wski18n.T(wski18n.ID_CMD_DESC_LONG_ROOT),
	RunE:          RootCmdImp,
}

Whisk Deploy has root command: wskdeploy wskdeploy is being created using Cobra Library

Functions

func Deploy

func Deploy(cmd *cobra.Command) error

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func ExportAction

func ExportAction(actionName string, packageName string, maniyaml *parsers.YAML, targetManifest string, projectName string) error

func ExportCmdImp

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

func ReportCmdImp

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

func RootCmdImp

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

func SyncCmdImp

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

func Undeploy

func Undeploy(cmd *cobra.Command) error

func UndeployCmdImp

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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