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:
Laurent Goderre
2024-07-31 16:13:26 -04:00
committed by GitHub
parent a4b5dcd0df
commit 92d63df6f5
32 changed files with 2992 additions and 8 deletions
+6
View File
@@ -42,6 +42,7 @@ const (
RpmPkg Type = "rpm"
RustPkg Type = "rust-crate"
SwiftPkg Type = "swift"
SwiplPackPkg Type = "swiplpack"
WordpressPluginPkg Type = "wordpress-plugin"
)
@@ -78,6 +79,7 @@ var AllPkgs = []Type{
RpmPkg,
RustPkg,
SwiftPkg,
SwiplPackPkg,
WordpressPluginPkg,
}
@@ -141,6 +143,8 @@ func (t Type) PackageURLType() string {
return "cargo"
case SwiftPkg:
return packageurl.TypeSwift
case SwiplPackPkg:
return "swiplpack"
case WordpressPluginPkg:
return "wordpress-plugin"
default:
@@ -217,6 +221,8 @@ func TypeByName(name string) Type {
return Rpkg
case packageurl.TypeSwift:
return SwiftPkg
case "swiplpack":
return SwiplPackPkg
case "wordpress-plugin":
return WordpressPluginPkg
default: