6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-11 04:14:15 +00:00

Cleanup the print package

- Use strings.Builder instead of concatenation
- Move smart tree to a separate file
- Add missing docstrings
This commit is contained in:
Grzegorz Dlugoszewski
2020-06-18 19:20:03 +02:00
parent 4fbdcde57b
commit 32211e6408
7 changed files with 119 additions and 106 deletions

View File

@@ -5,6 +5,7 @@ import (
"strings"
)
// DumpPrinter implements Printer interface and provides method for printing list of repos in dump file format.
type DumpPrinter struct{}
// Print generates a list of repos URLs. Each line contains a URL and, if applicable, a currently checked out branch name.