mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 07:26:34 +01:00
Added the SWI Prolog (swipl) ecosystem (#3076)
* 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>
This commit is contained in:
@@ -28,6 +28,7 @@ const (
|
||||
Ruby Language = "ruby"
|
||||
Rust Language = "rust"
|
||||
Swift Language = "swift"
|
||||
Swipl Language = "swipl"
|
||||
)
|
||||
|
||||
// AllLanguages is a set of all programming languages detected by syft.
|
||||
@@ -48,6 +49,7 @@ var AllLanguages = []Language{
|
||||
Ruby,
|
||||
Rust,
|
||||
Swift,
|
||||
Swipl,
|
||||
}
|
||||
|
||||
// String returns the string representation of the language.
|
||||
@@ -88,6 +90,8 @@ func LanguageByName(name string) Language {
|
||||
return Dotnet
|
||||
case packageurl.TypeCocoapods, packageurl.TypeSwift, string(CocoapodsPkg):
|
||||
return Swift
|
||||
case "swipl", string(SwiplPackPkg):
|
||||
return Swipl
|
||||
case packageurl.TypeConan, string(CPP):
|
||||
return CPP
|
||||
case packageurl.TypeHackage, string(Haskell):
|
||||
|
||||
Reference in New Issue
Block a user