drawio-export/pkg/drawio/execution.go
Алексей Бадяев b32f3ab88a
Some checks failed
golangci-lint / lint (stable, ubuntu-latest) (push) Failing after 4s
golangci-lint / lint (stable, windows-latest) (push) Failing after 12s
build / build (push) Failing after 27s
build / build_windows (push) Successful in 52s
Добавлен линтер golangci-lint
2024-10-17 23:29:54 +07:00

20 lines
319 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package drawio
import (
"errors"
"os/exec"
)
// Последовательный запуск команд в ОС
func RunSequence(command ...*exec.Cmd) error {
var errs []error
for _, cmd := range command {
if err := cmd.Run(); err != nil {
errs = append(errs, err)
}
}
return errors.Join(errs...)
}