mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 08:56:41 +01:00
* Add binary classifier for swipl Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> * Added cataloger for SWI Prolog Pack packages Signed-off-by: Laurent Goderre <laurent.goderre@docker.com> --------- Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
16 lines
478 B
Go
16 lines
478 B
Go
/*
|
|
Package swipl provides a Cataloger implementation relating to packages within the SWI Prolog language ecosystem.
|
|
*/
|
|
package swipl
|
|
|
|
import (
|
|
"github.com/anchore/syft/syft/pkg"
|
|
"github.com/anchore/syft/syft/pkg/cataloger/generic"
|
|
)
|
|
|
|
// NewSwiplPackCataloger returns a new SWI Prolog Pack package manager cataloger object.
|
|
func NewSwiplPackCataloger() pkg.Cataloger {
|
|
return generic.NewCataloger("swipl-pack-cataloger").
|
|
WithParserByGlobs(parsePackPackage, "**/pack.pl")
|
|
}
|