Improve CLI core

This commit is contained in:
Denis Makogon
2017-08-22 21:08:18 +03:00
parent d3f349804e
commit c01eead083
6 changed files with 91 additions and 73 deletions

View File

@@ -166,7 +166,7 @@ func (p *deploycmd) route(c *cli.Context, ff *funcfile) error {
routesCmd := routesCmd{client: client.APIClient()}
rt := &models.Route{}
if err := routeWithFuncFile(c, ff, rt); err != nil {
if err := routeWithFuncFile(ff, rt); err != nil {
return fmt.Errorf("error getting route with funcfile: %s", err)
}
return routesCmd.putRoute(c, p.appName, ff.Path, rt)