Improving certain CLI commands: init, run (#207)

* Consolidating route type utilization

Fixes: #197

* Adding --version to fn init CLI command

* Updating functions_go to 0.1.36

* Updating route init process

* Updating tests

* Adding "memory" CLI flag to fn run

* Make CLI memory flag override what's in func.yaml

* Get rid of default value for memory flag

* Revert UX impact

 func.yaml remains the same, no nested maps
This commit is contained in:
Denis Makogon
2017-08-18 21:14:29 +03:00
committed by Travis Reeder
parent 1730a7d094
commit 24eacbbbbf
69 changed files with 291 additions and 97 deletions

View File

@@ -180,12 +180,12 @@ func createFunctionYaml(opts createImageOptions, functionName string) error {
funcDesc := &funcfile{
Name: opts.Name,
Path: path,
Config: opts.Config,
Version: "0.0.1",
Runtime: &opts.Base,
Cmd: opts.Handler,
}
funcDesc.Config = opts.Config
funcDesc.Path = path
out, err := yaml.Marshal(funcDesc)
if err != nil {