6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-09 12:39:18 +00:00

Improve the implementation of the smart tree printer

It now correctly indents lines with branches status
This commit is contained in:
Grzegorz Dlugoszewski
2020-06-06 16:54:03 +02:00
parent 13c03bc2ef
commit 29c21cb78d
3 changed files with 45 additions and 10 deletions

View File

@@ -106,7 +106,7 @@ func PrintRepos(repos []*Repo) {
root := viper.GetString(KeyReposRoot)
tree := BuildTree(root, repos)
fmt.Println(RenderTree(tree))
fmt.Println(RenderSmartTree(tree))
}
const (