Skip to main content

Module import

Module import 

Source
Expand description

Config import and export functionality.

Structs§

ImportSummary
Summary of an import payload.

Enums§

ExportScope
What scope to export.
ImportMergeMode
How to handle conflicts during import.

Functions§

apply_import_config
Apply an already-normalized config to a layer.
export_config
Export current merged config to a file.
import_config
Import configuration from an external opencode.json file.
import_snippet
Import a JSON/JSONC/TOML/YAML snippet into an app state layer.
import_source
Import from a local path or supported URL.
parse_import_snippet
Parse an inline JSON/JSONC/TOML/YAML import snippet.
parse_import_source
Parse an import source without mutating state.