(dirPath, tarFilePath string)
| 81 | } |
| 82 | |
| 83 | func ExtractTarFile(dirPath, tarFilePath string) error { |
| 84 | cmd := exec.Command("tar", "Cxf", dirPath, tarFilePath) |
| 85 | if out, err := cmd.CombinedOutput(); err != nil { |
| 86 | return fmt.Errorf("failed to run %v: %q: %w", cmd.Args, string(out), err) |
| 87 | } |
| 88 | return nil |
| 89 | } |
no test coverage detected
searching dependent graphs…