forked from coop-cloud/abra
refactor: match logging for dry run
This commit is contained in:
parent
5113db1612
commit
9c8e6b63a6
|
@ -186,7 +186,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
|
|||
tagString = fmt.Sprintf("%s+%s", tag.String(), mainAppVersion)
|
||||
if internal.Dry {
|
||||
hash := abraFormatter.SmallSHA(head.Hash().String())
|
||||
logrus.Info(fmt.Sprintf("dry run only: NOT creating tag %s at %s", tagString, hash))
|
||||
logrus.Info(fmt.Sprintf("dry run: not creating tag %s at %s", tagString, hash))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -199,7 +199,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
|
|||
}
|
||||
logrus.Info(fmt.Sprintf("pushed tag %s to remote", tagString))
|
||||
} else {
|
||||
logrus.Info("dry run only: NOT pushing changes")
|
||||
logrus.Info("dry run: no changes pushed")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
@ -261,7 +261,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
|
|||
newtagString = newTag.String()
|
||||
if internal.Dry {
|
||||
hash := abraFormatter.SmallSHA(head.Hash().String())
|
||||
logrus.Info(fmt.Sprintf("dry run only: NOT creating tag %s at %s", newtagString, hash))
|
||||
logrus.Info(fmt.Sprintf("dry run: not creating tag %s at %s", newtagString, hash))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -274,7 +274,7 @@ You may invoke this command in "wizard" mode and be prompted for input:
|
|||
}
|
||||
logrus.Info(fmt.Sprintf("pushed tag %s to remote", newtagString))
|
||||
} else {
|
||||
logrus.Info("gry run only: NOT pushing changes")
|
||||
logrus.Info("dry run: no changes pushed")
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in New Issue