mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-09-16 15:20:38 +00:00
feat: add filter command add "list" subcommand (#159)
* feat: add filter command add "list" subcommand to display available filters Signed-off-by: Matthis Holleville <matthish29@gmail.com> * feat: create specific file to filterList Signed-off-by: Matthis Holleville <matthish29@gmail.com> * feat: rename ListAnalyzers to ListFilters Signed-off-by: Matthis Holleville <matthish29@gmail.com> --------- Signed-off-by: Matthis Holleville <matthish29@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9f0cb6240e
commit
6e17c9e285
@@ -81,3 +81,11 @@ func ParseViaAI(ctx context.Context, config *AnalysisConfiguration,
|
||||
}
|
||||
return response, nil
|
||||
}
|
||||
|
||||
func ListFilters() []string {
|
||||
keys := make([]string, 0, len(analyzerMap))
|
||||
for k := range analyzerMap {
|
||||
keys = append(keys, k)
|
||||
}
|
||||
return keys
|
||||
}
|
||||
|
Reference in New Issue
Block a user