Commit Graph

16 Commits

Author SHA1 Message Date
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