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:
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user