descriptions standardized

This commit is contained in:
alessio 2016-11-01 11:16:15 +01:00
parent 43844a0df4
commit 44421cf84c

View File

@ -7,7 +7,7 @@ import (
"time" "time"
) )
// argsParam parse one by one the given argumentes // Argsparam parse one by one the given argumentes
func argsParam(params *cli.Context) []string { func argsParam(params *cli.Context) []string {
argsN := params.NArg() argsN := params.NArg()
if argsN > 0 { if argsN > 0 {
@ -30,7 +30,7 @@ func duplicates(value Project, arr []Project) (Project, error) {
return Project{}, nil return Project{}, nil
} }
// check if a string is inArray // Check if a string is inArray
func inArray(str string, list []string) bool { func inArray(str string, list []string) bool {
for _, v := range list { for _, v := range list {
if v == str { if v == str {
@ -40,7 +40,7 @@ func inArray(str string, list []string) bool {
return false return false
} }
// Cewrites the log timestamp // Rewrite the layout of the log timestamp
func (w logWriter) Write(bytes []byte) (int, error) { func (w logWriter) Write(bytes []byte) (int, error) {
return fmt.Print(w.Yellow.Regular("[") + time.Now().Format("15:04:05") + w.Yellow.Regular("]") + string(bytes)) return fmt.Print(w.Yellow.Regular("[") + time.Now().Format("15:04:05") + w.Yellow.Regular("]") + string(bytes))
} }