fn: improve UX and publish/deploy command (#359)

* fn: improve UX and publish/deploy command

* fn: remove wrong use cases for deploy

* fn: fix regression introduced by merge
This commit is contained in:
C Cirello
2016-12-01 18:11:13 +01:00
committed by GitHub
parent c5696b1bbc
commit 9ac2539aeb
39 changed files with 453 additions and 469 deletions

View File

@@ -276,11 +276,10 @@ func basicImportHandler(functionName, tmpFileName string, opts *createImageOptio
func createFunctionYaml(opts createImageOptions) error {
strs := strings.Split(opts.Name, "/")
route := fmt.Sprintf("/%s", strs[1])
path := fmt.Sprintf("/%s", strs[1])
funcDesc := &funcfile{
App: &strs[0],
Name: opts.Name,
Route: &route,
Path: &path,
Config: opts.Config,
}