Refactor Manifest struct to change Dependencies from slice to map for better dependency management, and removing somethings from manifest struct too

This commit is contained in:
2025-10-03 18:45:49 -03:00
parent af24fa84a2
commit df4c76bd99

View File

@@ -2,14 +2,12 @@ package configs
type Manifest struct { type Manifest struct {
Info struct { Info struct {
Name string `toml:"name"` Name string `toml:"name"`
Id string `toml:"id"` Id string `toml:"id"`
Version string `toml:"version"` Version string `toml:"version"`
Description string `toml:"description"` Description string `toml:"description"`
Dependencies []string `toml:"dependencies"` Dependencies map[string]string `toml:"dependencies"`
Author string `toml:"author"` Author string `toml:"author"`
Family string `toml:"family"`
Serial uint `toml:"serial"`
} `toml:"Info"` } `toml:"Info"`
Hooks struct { Hooks struct {
Install string `toml:"install"` Install string `toml:"install"`