6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-09 03:54:20 +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

@@ -45,9 +45,9 @@ func List(c *ListCfg) error {
case cfg.OutFlat:
printer = &print.FlatPrinter{}
case cfg.OutTree:
printer = &print.SimpleTreePrinter{}
printer = &print.TreePrinter{}
case cfg.OutSmart:
printer = &print.SmartTreePrinter{}
printer = &print.SmartPrinter{}
case cfg.OutDump:
printer = &print.DumpPrinter{}
default: