From d398497d81f09b3011d52ff78a42f9b67d93aaee Mon Sep 17 00:00:00 2001 From: ewy Date: Wed, 22 Apr 2026 17:10:26 +0200 Subject: store whether --all is enabled in the state --- model/new.go | 5 ++++- model/state.go | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'model') diff --git a/model/new.go b/model/new.go index cddb404..8dd0ca4 100644 --- a/model/new.go +++ b/model/new.go @@ -4,6 +4,7 @@ import ( "errors" "io/fs" "path/filepath" + "pik/flags" "pik/identity" "strings" "sync" @@ -11,7 +12,9 @@ import ( func NewState(f fs.FS, locations []string, indexers []Indexer, runners []Runner) (*State, []error) { var errs []error - st := &State{} + st := &State{ + All: *flags.All, + } wg := sync.WaitGroup{} var sources = make([]*Source, len(locations), len(locations)) for i, loc := range locations { diff --git a/model/state.go b/model/state.go index 96da3eb..3ba2045 100644 --- a/model/state.go +++ b/model/state.go @@ -2,6 +2,7 @@ package model type State struct { Sources []*Source + All bool } type HydratedState struct { -- cgit v1.3.1