Documentation
¶
Index ¶
- Constants
- Variables
- func Deploy(cmd *cobra.Command) error
- func Execute()
- func ExportAction(actionName string, packageName string, maniyaml *parsers.YAML, ...) error
- func ExportCmdImp(cmd *cobra.Command, args []string) error
- func ReportCmdImp(cmd *cobra.Command, args []string) error
- func RootCmdImp(cmd *cobra.Command, args []string) error
- func SyncCmdImp(cmd *cobra.Command, args []string) error
- func Undeploy(cmd *cobra.Command) error
- func UndeployCmdImp(cmd *cobra.Command, args []string) error
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 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 ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.