mirror of
https://github.com/packwiz/packwiz.git
synced 2025-04-19 21:16:30 +02:00
Include primary version in printed acceptable versions list (#280)
fix #255
This commit is contained in:
parent
1c76f79888
commit
62e78d40e9
@ -61,6 +61,7 @@ var acceptableVersionsCommand = &cobra.Command{
|
|||||||
}
|
}
|
||||||
// Print success message
|
// Print success message
|
||||||
prettyList := strings.Join(currentVersions, ", ")
|
prettyList := strings.Join(currentVersions, ", ")
|
||||||
|
prettyList += ", " + modpack.Versions["minecraft"]
|
||||||
fmt.Printf("Added %s to acceptable versions list, now %s\n", acceptableVersion, prettyList)
|
fmt.Printf("Added %s to acceptable versions list, now %s\n", acceptableVersion, prettyList)
|
||||||
} else if flagRemove {
|
} else if flagRemove {
|
||||||
acceptableVersion := args[0]
|
acceptableVersion := args[0]
|
||||||
@ -84,6 +85,7 @@ var acceptableVersionsCommand = &cobra.Command{
|
|||||||
}
|
}
|
||||||
// Print success message
|
// Print success message
|
||||||
prettyList := strings.Join(currentVersions, ", ")
|
prettyList := strings.Join(currentVersions, ", ")
|
||||||
|
prettyList += ", " + modpack.Versions["minecraft"]
|
||||||
fmt.Printf("Removed %s from acceptable versions list, now %s\n", acceptableVersion, prettyList)
|
fmt.Printf("Removed %s from acceptable versions list, now %s\n", acceptableVersion, prettyList)
|
||||||
} else {
|
} else {
|
||||||
// Overwriting
|
// Overwriting
|
||||||
@ -128,6 +130,7 @@ var acceptableVersionsCommand = &cobra.Command{
|
|||||||
}
|
}
|
||||||
// Print success message
|
// Print success message
|
||||||
prettyList := strings.Join(acceptableVersionsDeduped, ", ")
|
prettyList := strings.Join(acceptableVersionsDeduped, ", ")
|
||||||
|
prettyList += ", " + modpack.Versions["minecraft"]
|
||||||
fmt.Printf("Set acceptable versions to %s\n", prettyList)
|
fmt.Printf("Set acceptable versions to %s\n", prettyList)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user