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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user