// Copyright 2026 Moko Consulting // SPDX-License-Identifier: GPL-3.0-or-later package setting // Metadata holds instance-level settings for the repository metadata feature. var Metadata = struct { // PlatformOptions is the admin-configurable list of allowed values for the // repo metadata "platform" field. Editable via Admin -> Metadata (persisted // to app.ini [metadata] PLATFORM_OPTIONS) so changing the taxonomy needs no // code change or redeploy. See issue #777. PlatformOptions []string }{ PlatformOptions: []string{"joomla", "dolibarr", "go", "npm", "generic"}, } func loadMetadataFrom(rootCfg ConfigProvider) { sec := rootCfg.Section("metadata") if opts := sec.Key("PLATFORM_OPTIONS").Strings(","); len(opts) > 0 { Metadata.PlatformOptions = opts } }