From 46d032cd21b0e8e2c94a32333d3805ec76980cca Mon Sep 17 00:00:00 2001 From: ewy Date: Mon, 1 Jun 2026 18:47:44 +0200 Subject: add man(1) generation --- model/new.go | 5 +++-- model/source.go | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'model') 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 -- cgit v1.3.1