Change colors for up and down migration arrows

This commit is contained in:
Devin Boyer 2017-01-08 21:33:04 -05:00
parent 3e3cef3763
commit 0c80688879
1 changed files with 2 additions and 1 deletions

View File

@ -187,10 +187,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)