🎨 Port package to types

This refactors DefaultPackage into types.Package and gets rid of the
interface. This is a preceeding for a follow up where accessors will be
removed from the code.
It also does several cleanup, so we get rid also of some unneeded
dependencies.
This commit is contained in:
Ettore Di Giacinto
2022-01-06 23:57:56 +01:00
parent 9c61210b5b
commit ba0d625b5f
98 changed files with 2694 additions and 6525 deletions

View File

@@ -36,7 +36,7 @@ This commands takes multiple packages as arguments and prunes their entries from
Run: func(cmd *cobra.Command, args []string) {
systemDB := util.DefaultContext.Config.GetSystemDB()
systemDB := util.SystemDB(util.DefaultContext.Config)
for _, a := range args {
pack, err := helpers.ParsePackageStr(a)