mirror of
https://github.com/packwiz/packwiz.git
synced 2025-10-28 17:54:32 +01:00
Add migrate command (#207)
* Add base and loader command * Support updating to latest * Support explicit fabric versions * Support explicit Forge version * Support quilt * Add support for updating Minecraft * Add support for Forge recommended * Fix Forge version sorting * Various fixes * Add documentation to the use * More suggestions
This commit is contained in:
@@ -9,8 +9,8 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
// updateCmd represents the update command
|
||||
var updateCmd = &cobra.Command{
|
||||
// UpdateCmd represents the update command
|
||||
var UpdateCmd = &cobra.Command{
|
||||
Use: "update [name]",
|
||||
Short: "Update an external file (or all external files) in the modpack",
|
||||
Aliases: []string{"upgrade"},
|
||||
@@ -210,8 +210,8 @@ var updateCmd = &cobra.Command{
|
||||
}
|
||||
|
||||
func init() {
|
||||
rootCmd.AddCommand(updateCmd)
|
||||
rootCmd.AddCommand(UpdateCmd)
|
||||
|
||||
updateCmd.Flags().BoolP("all", "a", false, "Update all external files")
|
||||
_ = viper.BindPFlag("update.all", updateCmd.Flags().Lookup("all"))
|
||||
UpdateCmd.Flags().BoolP("all", "a", false, "Update all external files")
|
||||
_ = viper.BindPFlag("update.all", UpdateCmd.Flags().Lookup("all"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user