Commit Graph

24 Commits

Author SHA1 Message Date
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
Pedro Nasser
4717889693 fnctl recursive flag (#230)
* -r flag for recursive scan

* -r flag for recursive scan

* fix flag description

* check if is stale only in recursive
2016-11-08 00:54:10 +01:00
Pedro Nasser
1276de223a fnctl: change from host/scheme flag to endpoint flag (#231)
* fnctl: change from host/schem flag to endpoint flag

* keep same format
2016-11-07 19:48:16 +01:00
C Cirello
946cd85119 fnctl: fix regression on environment transcription (#232)
Reverts https://github.com/iron-io/functions/pull/225 and prove
correctness with a test.
2016-11-07 19:21:58 +01:00
Seif Lotfy سيف لطفي
cc38ccd253 fix envAsHeader to set the req Header from kv[1] instead of os.Getenv(name) (#225) 2016-11-06 09:52:53 -08:00
Carlos C
d5fb1afda7 Revert "Assert License (#224)"
This reverts commit a61c4dab78.
2016-11-06 09:25:12 -08:00
Seif Lotfy سيف لطفي
a396a26410 Add lambda documentation (#215)
* Add import documentation

* minor fix

* Add lambda introductions in the docs

* Add lambda test-function docs

* Add getting-started

* Added lambda docs for create-function

* fixes suggested by @ccirello

* Add lamba environment documentation

* quick fixes

* use 3 ticks and language for docs

* use 3 ticks and language

* Add missing lambda README.md

* link to iron/node in the envirtonment.md

* fix getting-started.md

* notate bash commands

* minor cleanup

* minor cleanup

* minor cleanup

* minor cleanup

* minor cleanup

* fnctl/docs: fix formatting in create.md
2016-11-06 09:13:57 -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
C Cirello
1025caeb04 fnctl: add run command and fix env var handling (#211)
* fnctl: add run command and fix env var handling
* fnctl: fix help screens
* fnctl: address code review and fix logic mistake
2016-11-03 16:37:29 +01:00
Carlos C
a29bc1e0d9 fnctl: remove unused field in datastructure 2016-11-02 17:34:53 -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
C Cirello
5b3971060b Per language HOWTO's on writing functions (#208)
* fnctl: improve UX for howto's

* doc: go function howto

* fnctl: show the progress of build calls

* doc: php function howto

* doc: fix Go HOWTO

* doc: Node Functions HOWTO

* doc: Python Functions HOWTO

* doc: improve README files

* doc: ccirello -> USERNAME

* docs: fix Python example

Used an idiomatic method (isatty) to decide whether stdin must
be read or not.

* doc: fix go example

* fnctl: fix docker push output
2016-11-02 00:19:16 +01:00
C Cirello
688d3f245e fnctl: incremental build (#207) 2016-11-01 09:25:58 -07:00
Pedro Nasser
4c31c29fb8 new commands fnctl build and bump (#204)
New commands & refectoring

* fnctl: refactor code to improve reuse between commands

build, bump and publish (formerly update) share a lot of code,
this refactor ensure their logic are correctly reused. It renames
update to publish, so it would be a strong diff between "update"
and build.

* fnctl: remove unnecessary dependency for build and bump

* fnctl: improve code reuse between bump, build and publish

Unify the use of walker function in all these three commands and
drop dry-run support.

* Code grooming

- errcheck

* fnctl: update README.md to be in sync with actual execution output

* fnctl: move scan function to commoncmd structure

* fnctl: change verbose flag handling does not use global variable anymore
2016-11-01 00:11:29 -02: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
Carlos C
81adbe66f8 Install fnctl in systems directories 2016-10-24 09:58:43 -07:00
Carlos C
3778c0e213 Fix installer URL
[skip ci]
2016-10-24 09:54:11 -07:00
Carlos C
de73b66739 Fix CLI version
[skip ci]
2016-10-24 09:50:22 -07:00
Carlos C
360a644e22 Add installer script for fnctl
[skip ci]
2016-10-24 09:46:28 -07:00
C Cirello
b8cc8ad1d5 Functions CLI (#191)
First iteration of CLI tool.
2016-10-24 09:21:07 -07:00