This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-openwhisk-cli.git
The following commit(s) were added to refs/heads/master by this push:
new f8a1c54 Correct typos in code doc (#408)
f8a1c54 is described below
commit f8a1c54974ae8c59fd08440f21ec7fd644db87be
Author: James Dubee <[email protected]>
AuthorDate: Tue Feb 12 17:10:18 2019 -0500
Correct typos in code doc (#408)
---
commands/activation.go | 6 +++---
commands/api.go | 4 ++--
commands/trigger.go | 2 +-
commands/util.go | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/commands/activation.go b/commands/activation.go
index 9c0fe20..6dbde79 100644
--- a/commands/activation.go
+++ b/commands/activation.go
@@ -110,7 +110,7 @@ var activationGetCmd = &cobra.Command{
var field string
var err error
- if args, err = lastFlag(args); err != nil { // Checks if any
errors occured in lastFlag(args)
+ if args, err = lastFlag(args); err != nil { // Checks if any
errors occurred in lastFlag(args)
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed:
%s\n", args, err)
errStr := wski18n.T("Unable to get activation:
{{.err}}",
map[string]interface{}{"err": err})
@@ -180,7 +180,7 @@ var activationLogsCmd = &cobra.Command{
RunE: func(cmd *cobra.Command, args []string) error {
var err error
- if args, err = lastFlag(args); err != nil { // Checks if any
errors occured in lastFlag(args)
+ if args, err = lastFlag(args); err != nil { // Checks if any
errors occurred in lastFlag(args)
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed:
%s\n", args, err)
errStr := wski18n.T("Unable to get logs for activation:
{{.err}}",
map[string]interface{}{"err": err})
@@ -221,7 +221,7 @@ var activationResultCmd = &cobra.Command{
RunE: func(cmd *cobra.Command, args []string) error {
var err error
- if args, err = lastFlag(args); err != nil { // Checks if any
errors occured in lastFlag(args)
+ if args, err = lastFlag(args); err != nil { // Checks if any
errors occurred in lastFlag(args)
whisk.Debug(whisk.DbgError, "lastFlag(%#v) failed:
%s\n", args, err)
errStr := wski18n.T("Unable to get result for
activation: {{.err}}",
map[string]interface{}{"err": err})
diff --git a/commands/api.go b/commands/api.go
index 87ff9fd..7ded1c5 100644
--- a/commands/api.go
+++ b/commands/api.go
@@ -594,7 +594,7 @@ var apiListCmd = &cobra.Command{
for i := 0; i < len(retApiArray.Apis); i++ {
orderFilteredList = append(orderFilteredList,
genFilteredList(retApiArray.Apis[i].ApiValue, apiPath, apiVerb)...)
}
- printList(orderFilteredList, sortByName) // Sends an
array of structs that contains specifed variables that are not truncated
+ printList(orderFilteredList, sortByName) // Sends an
array of structs that contains specified variables that are not truncated
} else {
if len(retApiArray.Apis) > 0 {
// Dynamically create the output format string
based on the maximum size of the
@@ -610,7 +610,7 @@ var apiListCmd = &cobra.Command{
for i := 0; i < len(retApiArray.Apis); i++ {
orderFilteredRow =
append(orderFilteredRow, genFilteredRow(retApiArray.Apis[i].ApiValue, apiPath,
apiVerb, maxActionNameSize, maxApiNameSize)...)
}
- printList(orderFilteredRow, sortByName) //
Sends an array of structs that contains specifed variables that are truncated
+ printList(orderFilteredRow, sortByName) //
Sends an array of structs that contains specified variables that are truncated
} else {
fmt.Fprintf(color.Output,
wski18n.T("{{.ok}} APIs\n",
diff --git a/commands/trigger.go b/commands/trigger.go
index 4eca96b..b482fde 100644
--- a/commands/trigger.go
+++ b/commands/trigger.go
@@ -443,7 +443,7 @@ func (t *Trigger) Create(Client *whisk.Client, args
[]string) error {
// if a feed is specified, create additional parameters which must be
passed to the feed
feedName, feedParams := feedParameters(feedParam, FEED_CREATE,
triggerName, authToken)
- // the feed receives all the paramaters that are specified on the
command line so we merge
+ // the feed receives all the parameters that are specified on the
command line so we merge
// the feed lifecycle parameters with the command line ones
parameters := getParameters(append(paramArray, feedParams...), feedName
== nil, false)
diff --git a/commands/util.go b/commands/util.go
index 775989b..3fbafbe 100644
--- a/commands/util.go
+++ b/commands/util.go
@@ -188,7 +188,7 @@ func toPrintable(sortable []whisk.Sortable)
[]whisk.Printable {
// Prints the parameters/list for wsk xxxx list
// Identifies type and then copies array into an array of interfaces(Sortable)
to be sorted and printed
-// Param: Takes in an interace which contains an array of a command(Ex:
[]Action)
+// Param: Takes in an interface which contains an array of a command(Ex:
[]Action)
func printList(collection interface{}, sortByName bool) {
var commandToSort []whisk.Sortable
switch collection := collection.(type) {
@@ -319,7 +319,7 @@ func printSummary(collection interface{}) {
// Used to print Action, Tigger, Package, and Rule lists
// Param: Takes in a array of Printable interface, and the name of the command
// being sent to it
-// **Note**: The name sould be an empty string for APIs.
+// **Note**: The name should be an empty string for APIs.
func printCommandsList(commands []whisk.Printable, defaultHeader string) {
if len(commands) != 0 {
fmt.Fprint(color.Output,
boldString(commands[0].ToHeaderString()))