(args []string, noSave bool)
| 28 | } |
| 29 | |
| 30 | func UninstallModules(args []string, noSave bool) { |
| 31 | pkg, e := models.LoadPackage(false) |
| 32 | |
| 33 | if e != nil { |
| 34 | msg.Err(e.Error()) |
| 35 | } |
| 36 | |
| 37 | if pkg == nil { |
| 38 | return |
| 39 | } |
| 40 | |
| 41 | for e := range args { |
| 42 | dependencyRepository := installer.ParseDependency(args[e]) |
| 43 | pkg.UninstallDependency(dependencyRepository) |
| 44 | } |
| 45 | |
| 46 | pkg.Save() |
| 47 | |
| 48 | // TODO noSave |
| 49 | // TODO implement remove without reinstall process |
| 50 | |
| 51 | InstallModules([]string{}, false, false) |
| 52 | } |
no test coverage detected