mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 07:12:46 +01:00
23 lines
401 B
Go
23 lines
401 B
Go
package main
|
|
|
|
import (
|
|
"github.com/pocketbase/pocketbase/core"
|
|
|
|
"github.com/SecurityBrewery/catalyst/migrations"
|
|
)
|
|
|
|
func flags(app core.App) ([]string, error) {
|
|
records, err := app.Dao().FindRecordsByExpr(migrations.FeatureCollectionName)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
|
|
var flags []string
|
|
|
|
for _, r := range records {
|
|
flags = append(flags, r.GetString("name"))
|
|
}
|
|
|
|
return flags, nil
|
|
}
|