devoutput

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package devoutput converts prepared XenForo development output into release XML.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(ctx context.Context, addOnDir string) (*result, error)

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.

File access is rooted at addOnDir, and _data must not be a symbolic link. Metadata-listed inputs must be regular files within their type directories.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL