Skip to content

Commit

Permalink
Expose the kind filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jgustie committed Mar 25, 2021
1 parent 0bc0388 commit 7f9c962
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/command/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ func NewRootCommand(version, refspec, date string) *cobra.Command {

cmd.Flags().IntVarP(&f.Depth, "depth", "d", 100, "limit the number of times expansion can happen")
cmd.Flags().StringVarP(&f.LabelSelector, "selector", "l", "", "label query to filter on")
cmd.Flags().StringVar(&f.Kind, "kind", "", "keep only resource matching the specified kind")
cmd.Flags().BoolVar(&f.KeepStatus, "keep-status", false, "retain status fields, if present")
cmd.Flags().BoolVar(&f.KeepComments, "keep-comments", true, "retain YAML comments")
cmd.Flags().BoolVar(&f.Format, "format", false, "format output to Kubernetes conventions")
Expand Down

0 comments on commit 7f9c962

Please sign in to comment.