(do func(*Run) (bool, []error), includeTransitiveNeeds bool, o ...LoadOption)
| 891 | ) |
| 892 | |
| 893 | func (a *App) ForEachState(do func(*Run) (bool, []error), includeTransitiveNeeds bool, o ...LoadOption) error { |
| 894 | ctx := NewContext() |
| 895 | err := a.visitStatesWithSelectorsAndRemoteSupport(a.FileOrDir, func(st *state.HelmState) (bool, []error) { |
| 896 | helm := a.getHelm(st) |
| 897 | |
| 898 | run := NewRun(st, helm, ctx) |
| 899 | return do(run) |
| 900 | }, includeTransitiveNeeds, o...) |
| 901 | |
| 902 | return err |
| 903 | } |
| 904 | |
| 905 | func printBatches(batches [][]state.Release) string { |
| 906 | buf := &bytes.Buffer{} |