hideScratch replaces the run's scratch folder with in gh's output. Each binary gets its own folder, so paths such as the hosts.yml that gh auth status names would otherwise differ between binaries.
(text, scratch string)
| 503 | // output. Each binary gets its own folder, so paths such as the hosts.yml |
| 504 | // that gh auth status names would otherwise differ between binaries. |
| 505 | func hideScratch(text, scratch string) string { |
| 506 | return hideDirectory(text, scratch, "<scratch>") |
| 507 | } |
| 508 | |
| 509 | func hideDirectory(text, scratch, replacement string) string { |
| 510 | paths := []string{scratch} |
no test coverage detected