refactor!: upgrade/rollback vertical render / ui fixes

See toolshed/organising#658
This commit is contained in:
2024-12-28 23:35:47 +01:00
parent 7ec61c6d03
commit 356e527f1f
3 changed files with 32 additions and 31 deletions

View File

@ -6,6 +6,7 @@ import (
"path"
"coopcloud.tech/abra/pkg/envfile"
"coopcloud.tech/abra/pkg/formatter"
)
func (r Recipe) SampleEnv() (map[string]string, error) {
@ -29,7 +30,10 @@ func (r Recipe) GetReleaseNotes(version string) (string, error) {
if err != nil {
return "", err
}
withTitle := fmt.Sprintf("%s release notes:\n%s", version, string(releaseNotes))
title := formatter.BoldStyle.Render(fmt.Sprintf("%s release notes:", version))
withTitle := fmt.Sprintf("%s\n%s\n", title, releaseNotes)
return withTitle, nil
}