exec_streamer.go
func (e *execStreamer) ExecAndWait() error {
	cmd, err := e.StartExec()
	if err != nil {
		return err
	}

	e.stdOutAndErrWaitGroup.Wait()

	err = cmd.Wait()
	if err != nil {
		return err
	}

	return nil
}
func (e *execStreamer) ExecAndWait() error {
	cmd, err := e.StartExec()
	if err != nil {
		return err
	}

	e.stdOutAndErrWaitGroup.Wait()

	err = cmd.Wait()
	if err != nil {
		return err
	}

	return nil
}
func ( e * execStreamer ) ExecAndWait ( ) error { cmd , err := e . StartExec ( ) if err != nil { return err } e . stdOutAndErrWaitGroup . Wait ( ) err = cmd . Wait ( ) if err != nil { return err } return nil }
//ExecAndWait will execute the command using the given executor and wait until completion
ExecAndWait will execute the command using the given executor and wait until completion