refactor: add Ecosystem() method to PackageManager interface

This commit is contained in:
Sahilb315
2025-06-11 17:13:55 +05:30
parent af27701b8d
commit 8b8a98b13d
4 changed files with 12 additions and 12 deletions
+4
View File
@@ -37,6 +37,10 @@ func (pip *pipPackageManager) Name() string {
return "pip"
}
func (pip *pipPackageManager) Ecosystem() packagev1.Ecosystem {
return packagev1.Ecosystem_ECOSYSTEM_PYPI
}
func (pip *pipPackageManager) ParseCommand(args []string) (*ParsedCommand, error) {
if len(args) > 0 && args[0] == "pip" {
args = args[1:]