Documentation
¶
Overview ¶
Package devoutput converts prepared XenForo development output into release XML.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
// Directory is the absolute path to the release data directory.
Directory string
// Files is the number of XML files written, including empty containers.
Files int
// Entries is the number of exported records across all XML files.
Entries int
// Warnings lists ignored unknown fields, sorted and deduplicated by data type
// and field name. Intentionally omitted stock fields do not produce warnings.
Warnings []string
}
Result describes a completed export.
func Export ¶
Export reads prepared development output from addOnDir/_output and writes release XML to addOnDir/_data, creating the destination directory if needed. Missing or empty type directories produce empty XML containers.
Non-empty type directories require _metadata.jsonl. Only listed files are exported, and their contents must match the recorded hashes. Template and phrase versions are preserved. Unknown record fields are ignored and reported in Result.Warnings. Unsupported data types and export-handler class extensions are rejected; PHP handlers are not executed.
Export converts all inputs before writing any files. Each XML file is replaced atomically, but an I/O error or cancellation may leave a partially written set.