feat: add network:report command

This commit is contained in:
Jose Diaz-Gonzalez
2017-10-04 00:48:02 -04:00
parent fdbab2c291
commit ad732bd42b
8 changed files with 141 additions and 17 deletions

View File

@@ -8,6 +8,7 @@ import (
"os/exec"
"regexp"
"strings"
"unicode"
sh "github.com/codeskyblue/go-sh"
)
@@ -311,6 +312,14 @@ func ToBool(s string) bool {
return s == "true"
}
// UcFirst uppercases the first character in a string
func UcFirst(str string) string {
for i, v := range str {
return string(unicode.ToUpper(v)) + str[i+1:]
}
return ""
}
// VerifyAppName verifies app name format and app existence"
func VerifyAppName(appName string) (err error) {
if appName == "" {

View File

@@ -31,7 +31,7 @@ func LogInfo2(text string) {
// LogInfo2Quiet is the info2 header formatter (with quiet option)
func LogInfo2Quiet(text string) {
if os.Getenv("DOKKU_QUIET_OUTPUT") != "" {
if os.Getenv("DOKKU_QUIET_OUTPUT") == "" {
LogInfo2(text)
}
}