mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +01:00
* internalize majority of cmd package and migrate integration tests Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * add internal api encoder Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * create internal representation of all formats Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * export capability to get default encoders Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * restore test fixtures Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.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
|
|
}
|