diff options
| author | ewy <ewy0@protonmail.com> | 2026-06-01 18:47:44 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-06-01 18:47:44 +0200 |
| commit | 46d032cd21b0e8e2c94a32333d3805ec76980cca (patch) | |
| tree | fbb8aed5c5a501aca1309f62a9d4440ca949ce4c /model | |
| parent | 7585a488b7b1e1812f7ebf50107139e2fd65f035 (diff) | |
add man(1) generation
Diffstat (limited to 'model')
| -rw-r--r-- | model/new.go | 5 | ||||
| -rw-r--r-- | model/source.go | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/model/new.go b/model/new.go index e83c314..94e19a8 100644 --- a/model/new.go +++ b/model/new.go @@ -21,8 +21,9 @@ func NewState(rootFs fs.FS, locations []string, indexers []Indexer, runners []Ru wg.Go(func() { _, dirName := filepath.Split(strings.TrimSuffix(loc, "/")) src := &Source{ - Path: loc, - Identity: identity.New(dirName), + Path: loc, + Identity: identity.New(dirName), + Whitelists: make(map[string][]string), } sources[i] = src loc = strings.TrimSuffix(loc, "/") diff --git a/model/source.go b/model/source.go index 60f4c3d..246929e 100644 --- a/model/source.go +++ b/model/source.go @@ -11,8 +11,9 @@ import ( type Source struct { identity.Identity Tags - Path string - Targets []Target + Path string + Targets []Target + Whitelists map[string][]string } // HydratedSource is a Source with additional hydration |
