Add -n and -m to recipes/upgrade #291
Dismiss Review
Are you sure you want to dismiss this review?
Labels
Clear labels
bug
build
ci/cd
critical fix
design
documentation
duplicate
easy-first-issue
enhancement
help wanted
i10n
i18n
installer
invalid
question
release
release-candidate
security
tech-debt
test
wontfix
Something is not working
go build related issues
Building things with CI/CD
https://docs.coopcloud.tech/federation/resolutions/passed/010/
UI/UX
Documenting all the things
This issue or pull request already exists
Something for new people to get stuck into. We hope it's easy!
New feature
Need some help
Everything to do with localisation
Everything to do with internationalisation
Everything to do with the install script.
Something is wrong
More information is needed
Release management
Related to the new release candidate
Security related
Unit/integration testing
This won't be fixed
No labels
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Assignees
3wordchant
aadil (Aadil Ayub)
abra-bot (Abra Bot)
ammaratef45
amras (Sarma)
Apfelwurm
BornDeleuze
Brooke
carla
cas (Cassowary)
coopcloud
cyrnel
decentral1se (d1)
dede
devydave
fauno (fauno)
iexos
jade (Jade Ambrose)
jjsfunhouse
jmakdah2 (Jackie Makdah)
joe-irving (Joe Irving)
kawaiipunk (KawaiiPunk)
knoflook
kolaente
lambdabundesverband
linnealovespie (April)
moosemower
moritz
notplants
oxaliq (sorrel)
p4u1
pharaohgraphy (Andrew 🐦🔥❤️🔥✴️)
renovate-bot (Comrade Renovate Bot)
ripclap
simon
sixsmith (Sixsmith)
stevensting
trav (Trav Fryer)
val (val (he/him))
yksflip
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: toolshed/abra#291
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Support the no-input flag and the machine-readable-output flag in the
recipe upgradecommand.Nice one, thanks! Some minor comments.
@@ -27,6 +28,13 @@ type imgPin struct {version tagcmp.Tag}type anUpgrade struct {Missing doc string? E.g.
@@ -249,0 +261,4 @@Service: service.Name,Image: image,Tag: tag.String(),UpgradeTags: make([]string, len(compatibleStrings[1:])),Maybe sticking
len(compatibleStrings[1:])in a named variable will be more readable since it is used twice. The1:...is sure to not stack trace since there is always 1 entry in it? We could comment that out also.The
len()is less useful than the slice, I've made that change.@@ -252,0 +278,4 @@} else {prompt := &survey.Select{Message: msg,Help: "enter / return to confirm, choose 'skip' to not upgrade this tag, vim mode is enabled",Should we make this a
constsomewhere? Think it's getting re-used in several places now.We should do but I don't want to muddle this in with the change.
@@ -268,0 +308,4 @@jsonstring, err := json.Marshal(upgradeList)if err != nil {logrus.Fatal(err)} else {This is a dangling else, it can be dropped?
yep! done
@@ -268,0 +312,4 @@fmt.Println(string(jsonstring))}} else {For readability, this
elsecould be also dropped if youreturnearlier in the above block. Up to you.Yep, does looks cleaner. Done.