mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
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:
committed by
Travis Reeder
parent
1730a7d094
commit
24eacbbbbf
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user