func RestartAction(c *cli.Context) {
	wg := &sync.WaitGroup{}
	for _, service := range FilterServices(c) {
		wg.Add(1)
		go restart(wg, c, service)
	}
	wg.Wait()
	if c.Bool("attach") || c.Bool("logs") {
		LogsAction(c)
	}
}
RestartAction restarts all the services (or the specified ones)
package commands
import (
	"strings"
	"sync"
	"github.com/b2aio/orchestra/services"
	"github.com/codegangsta/cli"
	"github.com/wsxiaoys/terminal"
)
var RestartCommand = &cli.Command{
	Name:         "restart",
	Usage:        "Restarts all the services",
	Action:       BeforeAfterWrapper(RestartAction),
	BashComplete: ServicesBashComplete,
	Flags: []cli.Flag{
		cli.BoolFlag{
			Name:  "attach, a",
			Usage: "Attach to services output after start",
		},
		cli.BoolFlag{
			Name:  "logs, l",
			Usage: "Start logging after start",
		},
	},
}