* rework CI validation workflow and makefile * enable push * fix job names * fix license check * fix snapshot builds * fix acceptance tests * fix linting * disable pull request event * rework windows runner caching * disable release pipeline and add issue templates
23 lines
364 B
Go
23 lines
364 B
Go
package utils
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/logrusorgru/aurora"
|
|
)
|
|
|
|
func TitleFormat(s string) string {
|
|
return aurora.Bold(s).String()
|
|
}
|
|
|
|
// CleanArgs trims the whitespace from the given set of strings.
|
|
func CleanArgs(s []string) []string {
|
|
var r []string
|
|
for _, str := range s {
|
|
if str != "" {
|
|
r = append(r, strings.Trim(str, " "))
|
|
}
|
|
}
|
|
return r
|
|
}
|