Skip to main content

Module discovery

Module discovery 

Source
Expand description

env.cue file detection and package validation.

Provides utilities for finding and validating env.cue files within a CUE module hierarchy.

Enums§

EnvFileStatus
Status of env.cue file detection.

Functions§

adjust_meta_key_path
Adjust a meta key path by replacing "./" prefix with the relative path.
compute_relative_path
Compute relative path from module root to target directory.
detect_package_name
Detect the CUE package name from a file.
discover_env_cue_directories
Discover all directories containing env.cue files with matching package.
find_ancestor_env_files
Walk up from start collecting directories containing env.cue files.
find_cue_module_root
Find the CUE module root by walking up from start.
find_env_file
Locate env.cue in path and ensure it declares the expected package.
format_eval_errors
Format a list of evaluation errors into a human-readable summary.