fnctl: change from host/scheme flag to endpoint flag (#231)

* fnctl: change from host/schem flag to endpoint flag

* keep same format
This commit is contained in:
Pedro Nasser
2016-11-07 16:48:16 -02:00
committed by C Cirello
parent 946cd85119
commit 1276de223a
4 changed files with 31 additions and 21 deletions

View File

@@ -93,7 +93,9 @@ func (p publishcmd) dockerpush(image string) error {
}
func (p *publishcmd) route(path string, ff *funcfile) error {
resetBasePath(&p.Configuration)
if err := resetBasePath(&p.Configuration); err != nil {
return fmt.Errorf("error setting endpoint: %v", err)
}
an, r := extractAppNameRoute(path)
if ff.App == nil {