dive/utils/format.go
Alex Goodman d5e8a92968
Rework CI validation workflow and makefile (#460)
* 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
2023-07-06 22:01:46 -04:00

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
}