Initial commit
This commit is contained in:
17
marathon/output.go
Normal file
17
marathon/output.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package marathon
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func formatOutput(body string) string {
|
||||
f := []string{}
|
||||
for _, line := range strings.Split(body, "\n") {
|
||||
line = fmt.Sprintf(" %s", line)
|
||||
f = append(f, line)
|
||||
}
|
||||
|
||||
f = append(f[:len(f)-1], "")
|
||||
return strings.Join(f, "\n")
|
||||
}
|
||||
Reference in New Issue
Block a user