docs: improve plugins page (#4494)

This commit is contained in:
Ludovic Fernandez 2024-03-13 13:48:59 +01:00 committed by GitHub
parent 2a1afc14cb
commit eaf3ff0741
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 45 additions and 7 deletions

View file

@ -0,0 +1,15 @@
package main
import (
"fmt"
"os"
)
func getPluginReference() (string, error) {
reference, err := os.ReadFile(".custom-gcl.reference.yml")
if err != nil {
return "", fmt.Errorf("can't read .custom-gcl.reference.yml: %w", err)
}
return string(reference), nil
}