Skip to content

Commit

Permalink
feat: remove filter prefix on subcommand
Browse files Browse the repository at this point in the history
Signed-off-by: Matthis Holleville <matthish29@gmail.com>
  • Loading branch information
matthisholleville committed Mar 31, 2023
1 parent 9ebb7de commit 30faf84
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/filters/filtersAdd.go → cmd/filters/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/spf13/viper"
)

var filtersAddCmd = &cobra.Command{
var addCmd = &cobra.Command{
Use: "add [filter(s)]",
Short: "Adds one or more new filters.",
Long: `The add command adds one or more new filters to the default set of filters used by the analyze.`,
Expand Down
6 changes: 3 additions & 3 deletions cmd/filters/filters.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var FiltersCmd = &cobra.Command{
}

func init() {
FiltersCmd.AddCommand(filterListCmd)
FiltersCmd.AddCommand(filtersAddCmd)
FiltersCmd.AddCommand(filtersRemoveCmd)
FiltersCmd.AddCommand(listCmd)
FiltersCmd.AddCommand(addCmd)
FiltersCmd.AddCommand(removeCmd)
}
2 changes: 1 addition & 1 deletion cmd/filters/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/spf13/cobra"
)

var filterListCmd = &cobra.Command{
var listCmd = &cobra.Command{
Use: "list",
Short: "List available filters",
Long: `The list command displays a list of available filters that can be used to analyze Kubernetes resources.`,
Expand Down
2 changes: 1 addition & 1 deletion cmd/filters/filtersRemove.go → cmd/filters/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/spf13/viper"
)

var filtersRemoveCmd = &cobra.Command{
var removeCmd = &cobra.Command{
Use: "remove [filter(s)]",
Short: "Remove one or more filters.",
Long: `The add command remove one or more filters to the default set of filters used by the analyze.`,
Expand Down

0 comments on commit 30faf84

Please sign in to comment.