Skip to main content

find_config

Function find_config 

Source
pub fn find_config(start_dir: &Path) -> Result<Option<(UbtConfig, PathBuf)>>
Expand description

Locate and parse ubt.toml, returning the config and project root.

Resolution order:

  1. UBT_CONFIG environment variable (explicit path).
  2. Walk upward from start_dir looking for ubt.toml.