func Scale(b backend.Backend, targets []string) error { for _, target := range targets { component, num, err := splitScaleTarget(target) if err != nil { return err } // the router is the only component that can scale past 1 at the moment if num > 1 && !strings.Contains(component, "router") { return fmt.Errorf("cannot scale %s past 1", component) } if err := b.Scale(component, num); err != nil { return err } } return nil }