Initial commit

This commit is contained in:
2021-03-21 23:10:46 +01:00
commit 3144420a47
22 changed files with 2364 additions and 0 deletions

17
marathon/output.go Normal file
View 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")
}