mirror of
https://github.com/grdl/git-get.git
synced 2026-02-10 15:29:19 +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:
@@ -96,7 +96,7 @@ gitlab.com/
|
||||
repos = append(repos, repo.New(nil, path)) //&Repo{path: path})
|
||||
}
|
||||
|
||||
printer := SmartTreePrinter{}
|
||||
printer := SmartPrinter{}
|
||||
// Leading and trailing newlines are added to test cases for readability. We also need to add them to the rendering result.
|
||||
got := fmt.Sprintf("\n%s\n", printer.Print("root", repos))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user