package
0.0.0-20240605110052-2016107581da
Repository: https://github.com/grafana/thema.git
Documentation: pkg.go.dev
# Functions
AsModFS injects a cue.mod/module.cue file into the provided in fs.FS at its root, preparing it for use by
If a cue.mod already exists in the provided fs.FS, this func is a no-op.
InstancesWithThema passes through to [InstanceWithThema].
InstanceWithThema wraps CUE's [load.Instance] in order to allow loading .cue files that directly `import "github.com/grafana/thema"`, as lineages are expected to.
Package specifies a custom CUE package name use when loading CUE files.
ToOverlay maps the provided fs.FS into an Overlay for use in load.Config.
# Structs
ErrFSNotACueModule is a general error that wraps a particular error that explains why a particular fs.FS cannot be used as a CUE module FS as needed by InstancesWithThema.
# Type aliases
Option defines optional parameters that may be passed to the loader.