Merge pull request #137 from drboyer/updown-colors

Change colors for up and down migration arrows
This commit is contained in:
Matthias Kadenbach 2017-01-09 10:39:55 -08:00 committed by GitHub
commit 9a8f78ba3b

View File

@ -188,10 +188,11 @@ func writePipe(pipe chan interface{}) (ok bool) {
case file.File:
f := item.(file.File)
c := color.New(color.FgBlue)
if f.Direction == direction.Up {
c := color.New(color.FgGreen)
c.Print(">")
} else if f.Direction == direction.Down {
c := color.New(color.FgRed)
c.Print("<")
}
fmt.Printf(" %s\n", f.FileName)