func addTasks(app *cli.App, cfg *runner.Config, create commandCreator) error {
	for _, t := range cfg.Tasks {
		if err := addTask(app, cfg, t, create); err != nil {
			return errors.Wrapf(err, `could not add task "%s"`, t.Name)
		}
	}

	sort.Sort(cli.CommandsByName(app.Commands))
	return nil
}
// addTasks adds a series of tasks to a cli.App using a command creator.
addTasks adds a series of tasks to a cli.App using a command creator.
// addTasks adds a series of tasks to a cli . App using a command creator .
func addTasks(app *cli.App, cfg *runner.Config, create commandCreator) error {
	for _, t := range cfg.Tasks {
		if err := addTask(app, cfg, t, create); err != nil {
			return errors.Wrapf(err, `could not add task "%s"`, t.Name)
		}
	}
	sort.Sort(cli.CommandsByName(app.Commands))
	return nil
}
func addTasks ( app * cli . App , cfg * runner . Config , create commandCreator ) error { for _ , t := range cfg . Tasks { if err := addTask ( app , cfg , t , create ) ; err != nil { return errors . Wrapf ( err , `could not add task "%s"` , t . Name ) } } sort . Sort ( cli . CommandsByName ( app . Commands ) ) return nil }
addTasks adds a series of tasks to a cli.App using a command creator.
addTasks adds a series of tasks to a cli . App using a command creator .