18 lines
521 B
Go
18 lines
521 B
Go
|
|
// Copyright 2026 The Gitea Authors. All rights reserved.
|
||
|
|
// SPDX-License-Identifier: MIT
|
||
|
|
|
||
|
|
package pkgspec
|
||
|
|
|
||
|
|
import (
|
||
|
|
packages_model "code.gitea.io/gitea/models/packages"
|
||
|
|
packages_service "code.gitea.io/gitea/services/packages"
|
||
|
|
"code.gitea.io/gitea/services/packages/terraform"
|
||
|
|
)
|
||
|
|
|
||
|
|
func InitManager() error {
|
||
|
|
mgr := packages_service.GetSpecManager()
|
||
|
|
mgr.Add(packages_model.TypeTerraformState, &terraform.Specialization{})
|
||
|
|
// TODO: add more in the future, refactor the existing code to use this approach
|
||
|
|
return nil
|
||
|
|
}
|