Allow server to make backups
This commit is contained in:
parent
aeceae11d5
commit
b3a827e042
27 changed files with 891 additions and 418 deletions
|
|
@ -22,8 +22,8 @@ func LogMessage(io stream.IOStream, format string, args ...interface{}) (int, er
|
|||
|
||||
func logOperation(io stream.IOStream, indent int, format string, args ...interface{}) (int, error) {
|
||||
message := "\033[1m" + strings.Repeat(" ", indent+1) + "=> " + format + "\033[0m\n"
|
||||
if !io.StdinIsATerminal() {
|
||||
message = " => " + format
|
||||
if !io.StdoutIsATerminal() {
|
||||
message = " => " + format + "\n"
|
||||
}
|
||||
|
||||
return io.Printf(message, args...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue