Include primary version in printed acceptable versions list (#280)

fix #255
This commit is contained in:
Omay 2024-04-21 05:43:31 -06:00 committed by GitHub
parent 1c76f79888
commit 62e78d40e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,6 +61,7 @@ var acceptableVersionsCommand = &cobra.Command{
}
// Print success message
prettyList := strings.Join(currentVersions, ", ")
prettyList += ", " + modpack.Versions["minecraft"]
fmt.Printf("Added %s to acceptable versions list, now %s\n", acceptableVersion, prettyList)
} else if flagRemove {
acceptableVersion := args[0]
@ -84,6 +85,7 @@ var acceptableVersionsCommand = &cobra.Command{
}
// Print success message
prettyList := strings.Join(currentVersions, ", ")
prettyList += ", " + modpack.Versions["minecraft"]
fmt.Printf("Removed %s from acceptable versions list, now %s\n", acceptableVersion, prettyList)
} else {
// Overwriting
@ -128,6 +130,7 @@ var acceptableVersionsCommand = &cobra.Command{
}
// Print success message
prettyList := strings.Join(acceptableVersionsDeduped, ", ")
prettyList += ", " + modpack.Versions["minecraft"]
fmt.Printf("Set acceptable versions to %s\n", prettyList)
}
},