Commit Graph

13 Commits

Author SHA1 Message Date
C Cirello
1395393b9b fnctl: code cleanup (#281) 2016-11-15 01:52:58 +01:00
C Cirello
46593d9bd8 fnctl: init - configuration over detection (#278)
This commit modifies how init detects runtime and entrypoints. It
assumes the following convention:

1 - All functions have a func.{lang} file - from which both
entrypoint and runtime are deduced.

2 - Entrypoints always are, depending on the language, "./func",
"{lang-exec} ./func.{lang}", "{lang-exec} ./func.{package}" (e.g.
Java's "func.jar" and PHP's "func.phar").
2016-11-14 15:32:10 -08:00
C Cirello
32e9c45df5 fnctl: Image -> Name (#271)
Fixes #268
2016-11-12 03:34:29 +01:00
Seif Lotfy سيف لطفي
ce8a449079 Add config flags support to lambda create and import (#245)
* Add config flags support to lambda create and import

* fix publishing and path formatting

* expand env variables properly for lambda functionality

* add proper env variables handling for aws-import
2016-11-10 22:27:03 +01:00
Travis Reeder
85e15fe48a More doc updates, explanation of serverless. (#228)
* More doc updates, explanation of serverless.

* Moved howto directory to examples and some minor doc updates.

* Added apps and routes docs.

* Fixes for Carlos' comments.

* Added bit about importing lambda functions.
2016-11-08 09:44:08 -08:00
Carlos C
d5fb1afda7 Revert "Assert License (#224)"
This reverts commit a61c4dab78.
2016-11-06 09:25:12 -08:00
C Cirello
a61c4dab78 Assert License (#224)
* license: assert license for Go code
* license: add in shell scripts
* license: assert license for Ruby code
* license: assert license to individual cases
* license: assert license to Dockerfile
2016-11-05 23:33:07 +01:00
C Cirello
358154d1eb fnctl: improve code readability (#223)
- fmt.Print(fmt.Sprintf()) -> fmt.Printf
- buf.WriteString(fmt.Sprintf()) -> fmt.Fprintf(&buf, ...)
2016-11-04 23:09:32 +01:00
Seif Lotfy سيف لطفي
8665e11a55 properly format copying of files message during dockerfile creation (#222) 2016-11-04 14:55:26 -07:00
Seif Lotfy سيف لطفي
634ff7c57f Refactor (#213)
* Fix logic of aws-import

* minor cleanup

* minor cleanup

* Get rid of flags for mandatory fields on create-function sub-command

* Convert aws-import mandatory flags to arguments and clean up waste

* clean up usage strings for lambda command

* get rid of uneeded struct lambdaCmd

* cleanup empty lines

* fnctl lambda now creates the dockerfiles instead of images

* fnctl: remove build steps

* fnctl: overall refactor

Not complete yet, some improvements:
1 - integrate part of the lambda code into lambda.go
2 - reorganize functions to facility code browsing
3 - improves per-runtime handling (namely java8)
2016-11-04 14:05:30 -07:00
Seif Lotfy سيف لطفي
0bff16e765 fnctl: Fix aws import (#212) 2016-11-02 17:20:51 -07:00
Seif Lotfy سيف لطفي
079be64ad7 Fnclt lambda test-function (#209) 2016-11-02 14:12:54 -07:00
Seif Lotfy سيف لطفي
61344a140a Add lambda create-function command to convert lambda code to a function (#199) 2016-10-31 12:12:22 -07:00