openwhisk-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From csantan...@apache.org
Subject [incubator-openwhisk-cli] branch master updated: added golang actions
Date Fri, 02 Nov 2018 23:52:09 GMT
This is an automated email from the ASF dual-hosted git repository.

csantanapr 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 a8f9a6e  added golang actions
a8f9a6e is described below

commit a8f9a6e84d27da4bd4b155838d5b0ba7adc88957
Author: Michele Sciabarra <sciabarracom@sciabarra.com>
AuthorDate: Tue Oct 30 20:50:54 2018 +0000

    added golang actions
---
 commands/action.go | 6 ++++++
 vendor/vendor.json | 6 +++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/commands/action.go b/commands/action.go
index 615f56b..4d0ad4e 100644
--- a/commands/action.go
+++ b/commands/action.go
@@ -54,12 +54,14 @@ const (
 	ZIP_EXT           = ".zip"
 	PHP_EXT           = ".php"
 	RUBY_EXT          = ".rb"
+	GO_EXT            = ".go"
 	NODE_JS           = "nodejs"
 	PYTHON            = "python"
 	JAVA              = "java"
 	SWIFT             = "swift"
 	PHP               = "php"
 	RUBY              = "ruby"
+	GO                = "go"
 	DEFAULT           = "default"
 	BLACKBOX          = "blackbox"
 	SEQUENCE          = "sequence"
@@ -627,6 +629,8 @@ func getExec(args []string, params ActionFlags) (*whisk.Exec, error) {
 		exec.Kind = fmt.Sprintf("%s:%s", PHP, DEFAULT)
 	} else if ext == RUBY_EXT {
 		exec.Kind = fmt.Sprintf("%s:%s", RUBY, DEFAULT)
+	} else if ext == GO_EXT {
+		exec.Kind = fmt.Sprintf("%s:%s", GO, DEFAULT)
 	} else {
 		if ext == ZIP_EXT {
 			return nil, zipKindError()
@@ -670,6 +674,8 @@ func getKindExtension(runtime string) (extension string) {
 		extension = fmt.Sprintf(".%s", runtime)
 	case RUBY:
 		extension = RUBY_EXT
+	case GO:
+		extension = GO_EXT
 	}
 
 	return extension
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 41ebaf0..4a2176e 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -57,10 +57,10 @@
 			"revisionTime": "2016-11-03T16:00:40Z"
 		},
 		{
-			"checksumSHA1": "xZuhljnmBysJPta/lMyYmJdujCg=",
+			"checksumSHA1": "GiVgQkx5acnq+JZtYiuHPlhHoso=",
 			"path": "github.com/mattn/go-isatty",
-			"revision": "66b8e73f3f5cda9f96b69efd03dd3d7fc4a5cdb8",
-			"revisionTime": "2016-08-06T12:27:52Z"
+			"revision": "3fb116b820352b7f0c281308a4d6250c22d94e27",
+			"revisionTime": "2018-08-30T10:17:45Z"
 		},
 		{
 			"checksumSHA1": "Li0PaRmaVBdibS/zs8myzc07L6o=",


Mime
View raw message