mirror of
https://github.com/k8sgpt-ai/k8sgpt.git
synced 2025-10-22 06:57:10 +00:00
26 lines
601 B
Go
26 lines
601 B
Go
package filters
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var FiltersCmd = &cobra.Command{
|
|
Use: "filters",
|
|
Aliases: []string{"filters"},
|
|
Short: "Manage filters for analyzing Kubernetes resources",
|
|
Long: `The filters command allows you to manage filters that are used to analyze Kubernetes resources.
|
|
You can list available filters to analyze resources.`,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
if len(args) == 0 {
|
|
cmd.Help()
|
|
return
|
|
}
|
|
},
|
|
}
|
|
|
|
func init() {
|
|
FiltersCmd.AddCommand(filterListCmd)
|
|
FiltersCmd.AddCommand(filtersAddCmd)
|
|
FiltersCmd.AddCommand(filtersRemoveCmd)
|
|
}
|