Skip to content

Commit

Permalink
PMM-12361 enable pmm-admin inventory help command (#2393)
Browse files Browse the repository at this point in the history
* PMM-12361 add RunCmd to pmm-admin inventory

* PMM-12361 remove redundant types

* PMM-12361 fix a typo

* PMM-12361 rephrase the help description
  • Loading branch information
Alex Tymchuk committed Aug 24, 2023
1 parent 2a307bb commit 2ff9f76
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions admin/commands/inventory/inventory.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (

// InventoryCommand is used by Kong for CLI flags and commands.
type InventoryCommand struct {
List ListCommand `cmd:"" hidden:"" help:"List inventory commands"`
Add AddCommand `cmd:"" hidden:"" help:"Add to inventory commands"`
Remove RemoveCommand `cmd:"" hidden:"" help:"Remove from inventory commands"`
List ListCommand `cmd:"" help:"List inventory commands"`
Add AddCommand `cmd:"" help:"Add to inventory commands"`
Remove RemoveCommand `cmd:"" help:"Remove from inventory commands"`
}

// ListCommand is used by Kong for CLI flags and commands.
Expand Down Expand Up @@ -105,3 +105,6 @@ func formatTypeValue(acceptableTypeValues map[string][]string, input string) (*s
}
return nil, errors.Errorf("unexpected type value %q", input)
}

// RunCmd is a stub that allows to display the InventoryCommand's help.
func (cmd *InventoryCommand) RunCmd() {}

0 comments on commit 2ff9f76

Please sign in to comment.