mirror of https://github.com/status-im/migrate.git
Change colors for up and down migration arrows
This commit is contained in:
parent
3e3cef3763
commit
0c80688879
3
main.go
3
main.go
|
@ -187,10 +187,11 @@ func writePipe(pipe chan interface{}) (ok bool) {
|
||||||
|
|
||||||
case file.File:
|
case file.File:
|
||||||
f := item.(file.File)
|
f := item.(file.File)
|
||||||
c := color.New(color.FgBlue)
|
|
||||||
if f.Direction == direction.Up {
|
if f.Direction == direction.Up {
|
||||||
|
c := color.New(color.FgGreen)
|
||||||
c.Print(">")
|
c.Print(">")
|
||||||
} else if f.Direction == direction.Down {
|
} else if f.Direction == direction.Down {
|
||||||
|
c := color.New(color.FgRed)
|
||||||
c.Print("<")
|
c.Print("<")
|
||||||
}
|
}
|
||||||
fmt.Printf(" %s\n", f.FileName)
|
fmt.Printf(" %s\n", f.FileName)
|
||||||
|
|
Loading…
Reference in New Issue