You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by mr...@apache.org on 2017/09/07 15:59:04 UTC
[incubator-openwhisk-wskdeploy] branch master updated: Add some
SuggestFor attribute for sub command (#460)
This is an automated email from the ASF dual-hosted git repository.
mrutkowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-wskdeploy.git
The following commit(s) were added to refs/heads/master by this push:
new e98efb0 Add some SuggestFor attribute for sub command (#460)
e98efb0 is described below
commit e98efb04e40bc14a7dbc5b1f3179609087537850
Author: David Liu <no...@126.com>
AuthorDate: Thu Sep 7 23:59:02 2017 +0800
Add some SuggestFor attribute for sub command (#460)
to help hint users with more useful info.
---
cmd/add.go | 1 +
cmd/init.go | 1 +
cmd/publish.go | 1 +
cmd/report.go | 1 +
cmd/undeploy.go | 1 +
cmd/version.go | 1 +
6 files changed, 6 insertions(+)
diff --git a/cmd/add.go b/cmd/add.go
index 76d76ce..41b42e7 100644
--- a/cmd/add.go
+++ b/cmd/add.go
@@ -30,6 +30,7 @@ import (
// addCmd represents the add command
var addCmd = &cobra.Command{
Use: "add",
+ SuggestFor: []string {"increase"},
Short: "Add an action, feed, trigger or rule to the manifest",
}
diff --git a/cmd/init.go b/cmd/init.go
index 9b388d7..14c12bf 100644
--- a/cmd/init.go
+++ b/cmd/init.go
@@ -28,6 +28,7 @@ import (
var initCmd = &cobra.Command{
Use: "init",
+ SuggestFor: []string {"initialize"},
Short: "Init helps you create a manifest file on OpenWhisk",
Run: func(cmd *cobra.Command, args []string) {
maniyaml := parsers.ReadOrCreateManifest()
diff --git a/cmd/publish.go b/cmd/publish.go
index c8bfa71..2d62780 100644
--- a/cmd/publish.go
+++ b/cmd/publish.go
@@ -34,6 +34,7 @@ import (
// publishCmd represents the publish command
var publishCmd = &cobra.Command{
Use: "publish",
+ SuggestFor: []string {"publicize"},
Short: "Publish a package to a registry",
Long: `Publish a package to the registry set in ~/.wskprops`,
Run: func(cmd *cobra.Command, args []string) {
diff --git a/cmd/report.go b/cmd/report.go
index 65842bf..ae00033 100644
--- a/cmd/report.go
+++ b/cmd/report.go
@@ -38,6 +38,7 @@ var wg sync.WaitGroup
// reportCmd represents the report command
var reportCmd = &cobra.Command{
Use: "report",
+ SuggestFor: []string {"list"},
Short: "Returns summary of what's been deployed on OpenWhisk in specific namespace",
Long: `Command helps user get an overall report about what's been deployed
on OpenWhisk with specific OpenWhisk namespace. By default it will read the wsk property file
diff --git a/cmd/undeploy.go b/cmd/undeploy.go
index ec464c8..e1a962a 100644
--- a/cmd/undeploy.go
+++ b/cmd/undeploy.go
@@ -25,6 +25,7 @@ import (
// undeployCmd represents the undeploy command
var undeployCmd = &cobra.Command{
Use: "undeploy",
+ SuggestFor: []string {"remove"},
Short: "Undeploy assets from OpenWhisk",
Long: `Undeploy removes deployed assets from the manifest and deployment files`,
RunE: UndeployCmdImp,
diff --git a/cmd/version.go b/cmd/version.go
index 9a996e5..0f732d7 100644
--- a/cmd/version.go
+++ b/cmd/version.go
@@ -29,6 +29,7 @@ func init() {
var versionCmd = &cobra.Command{
Use: "version",
+ SuggestFor: []string {"edition", "release"},
Short: "Print the version number of openwhisk-wskdeploy",
Long: `Print the version number of openwhisk-wskdeploy`,
Run: func(cmd *cobra.Command, args []string) {
--
To stop receiving notification emails like this one, please contact
['"commits@openwhisk.apache.org" <co...@openwhisk.apache.org>'].