From 10b15d65b46ecc73a4b80668cd2d2feece95220d Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 29 Sep 2021 22:36:50 +0200 Subject: [PATCH] docs: use same style log messages [ci skip] --- cli/recipe/release.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cli/recipe/release.go b/cli/recipe/release.go index a1a1a608b..b61d31e52 100644 --- a/cli/recipe/release.go +++ b/cli/recipe/release.go @@ -116,7 +116,7 @@ or a rollback of an app. mainApp := getMainApp(recipe) mainAppVersion := imagesTmp[mainApp] if mainAppVersion == "" { - logrus.Fatal("Main app's version is empty.") + logrus.Fatal("main app version is empty?") } if tagstring != "" { @@ -169,7 +169,7 @@ or a rollback of an app. if tagstring != "" { if bumpType > 0 { - logrus.Warn("user specified a version number and --major/--minor/--patch at the same time! Using version number.") + logrus.Warn("user specified a version number and --major/--minor/--patch at the same time! using version number...") } tag, err := tagcmp.Parse(tagstring) if err != nil { @@ -185,19 +185,19 @@ or a rollback of an app. } tagstring = fmt.Sprintf("%s+%s", tag.String(), mainAppVersion) if Dry { - logrus.Info(fmt.Sprintf("Dry run only. NOT creating tag %s at %s", tagstring, head.Hash())) + logrus.Info(fmt.Sprintf("dry run only: NOT creating tag %s at %s", tagstring, head.Hash())) return nil } repo.CreateTag(tagstring, head.Hash(), nil) /* &git.CreateTagOptions{ Message: tag, })*/ - logrus.Info(fmt.Sprintf("Created tag %s at %s.", tagstring, head.Hash())) + logrus.Info(fmt.Sprintf("created tag %s at %s", tagstring, head.Hash())) if Push { if err := repo.Push(&git.PushOptions{}); err != nil { logrus.Fatal(err) } - logrus.Info(fmt.Sprintf("Pushed tag %s to remote.", tagstring)) + logrus.Info(fmt.Sprintf("pushed tag %s to remote", tagstring)) } return nil @@ -248,24 +248,24 @@ or a rollback of an app. } newTagString = newTag.String() } else { - logrus.Fatal("we don't support auto tag generation yet. Specify a verion or use one of: --major --minor --patch") + logrus.Fatal("we don't support automatic tag generation yet - specify a version or use one of: --major --minor --patch") } newTagString = fmt.Sprintf("%s+%s", newTagString, mainAppVersion) if Dry { - logrus.Info(fmt.Sprintf("Dry run only. NOT creating tag %s at %s", newTagString, head.Hash())) + logrus.Info(fmt.Sprintf("dry run only: NOT creating tag %s at %s", newTagString, head.Hash())) return nil } repo.CreateTag(newTagString, head.Hash(), nil) /* &git.CreateTagOptions{ Message: tag, })*/ - logrus.Info(fmt.Sprintf("Created tag %s at %s.", newTagString, head.Hash())) + logrus.Info(fmt.Sprintf("created tag %s at %s", newTagString, head.Hash())) if Push { if err := repo.Push(&git.PushOptions{}); err != nil { logrus.Fatal(err) } - logrus.Info(fmt.Sprintf("Pushed tag %s to remote.", newTagString)) + logrus.Info(fmt.Sprintf("pushed tag %s to remote", newTagString)) } return nil