Print Krmfile data for cfg tree

This commit is contained in:
Phani Teja Marupaka
2020-09-10 23:21:04 -07:00
parent 5c8c7a043a
commit 880009b648
6 changed files with 152 additions and 32 deletions

View File

@@ -29,8 +29,6 @@ func GetGrepRunner(name string) *GrepRunner {
Args: cobra.MaximumNArgs(2),
}
fixDocs(name, c)
c.Flags().BoolVar(&r.IncludeSubpackages, "include-subpackages", true,
"also print resources from subpackages.")
c.Flags().BoolVar(&r.KeepAnnotations, "annotate", true,
"annotate resources with their file origins.")
c.Flags().BoolVarP(&r.InvertMatch, "invert-match", "", false,
@@ -47,9 +45,8 @@ func GrepCommand(name string) *cobra.Command {
// GrepRunner contains the run function
type GrepRunner struct {
IncludeSubpackages bool
KeepAnnotations bool
Command *cobra.Command
KeepAnnotations bool
Command *cobra.Command
filters.GrepFilter
Format bool
RecurseSubPackages bool