mirror of
https://github.com/anchore/syft.git
synced 2026-10-31 22:46:36 +01:00
* add cataloger list command Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * chore: tidy go mod Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com> Co-authored-by: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com> Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
21 lines
301 B
Go
21 lines
301 B
Go
package commands
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/anchore/clio"
|
|
)
|
|
|
|
func Cataloger(app clio.Application) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "cataloger",
|
|
Short: "Show available catalogers and configuration",
|
|
}
|
|
|
|
cmd.AddCommand(
|
|
CatalogerList(app),
|
|
)
|
|
|
|
return cmd
|
|
}
|