feat: make release use wizard mode

Some bugs squashed while testing this extensively.
This commit is contained in:
2021-11-06 22:36:01 +01:00
parent f9726b6643
commit 63d9703d9d
4 changed files with 188 additions and 54 deletions

View File

@ -20,6 +20,10 @@ func Truncate(str string) string {
return fmt.Sprintf(`"%s"`, formatter.Ellipsis(str, 19))
}
func SmallSHA(hash string) string {
return hash[:8]
}
// RemoveSha remove image sha from a string that are added in some docker outputs
func RemoveSha(str string) string {
return strings.Split(str, "@")[0]