fix clifmt/symbols (forgot the '\r')
This commit is contained in:
parent
20245a9955
commit
f094254acc
|
@ -89,12 +89,12 @@ func (r *Reader) Execute() error {
|
|||
_, err := inst.Exec(*r.Context)
|
||||
if err != nil {
|
||||
fmt.Printf("\r")
|
||||
clifmt.Align(fmt.Sprintf("\r(%d) %s", i, clifmt.Color(34, inst.Raw())))
|
||||
clifmt.Align(fmt.Sprintf("(%d) %s", i, clifmt.Color(34, inst.Raw())))
|
||||
fmt.Printf("%s \n", clifmt.Color(31, err.Error()))
|
||||
continue
|
||||
} else {
|
||||
fmt.Printf("\r")
|
||||
clifmt.Align(fmt.Sprintf("\r(%d) %s", i, clifmt.Color(34, inst.Raw())))
|
||||
clifmt.Align(fmt.Sprintf("(%d) %s", i, clifmt.Color(34, inst.Raw())))
|
||||
fmt.Printf("%s \n", clifmt.Color(32, "done"))
|
||||
}
|
||||
}
|
||||
|
|
|
@ -57,7 +57,7 @@ func Align(s string) {
|
|||
}
|
||||
|
||||
}
|
||||
size = getRealSize(s) - 1
|
||||
size = getRealSize(s)
|
||||
}
|
||||
|
||||
// 2. print string
|
||||
|
|
Loading…
Reference in New Issue