Create LocalSource as type for local dependencies

This commit is contained in:
Matthias Loibl 2019-07-23 13:28:58 -07:00
parent 6ee790d911
commit 07801936c0
No known key found for this signature in database
GPG key ID: 78A796CA74CA38BA
6 changed files with 71 additions and 23 deletions

View file

@ -26,10 +26,15 @@ type Dependency struct {
}
type Source struct {
GitSource *GitSource `json:"git"`
GitSource *GitSource `json:"git,omitempty"`
LocalSource *LocalSource `json:"local,omitempty"`
}
type GitSource struct {
Remote string `json:"remote"`
Subdir string `json:"subdir"`
}
type LocalSource struct {
Directory string `json:"directory"`
}