pub fn find_app_root_for_target(
target_id: &str,
app_dir_hint: Option<&Path>,
repo_root: Option<&Path>,
binary_dir: Option<&Path>,
) -> Option<String>Expand description
Finds an app root by checking the explicit app directory, repository root, and binary-relative app directories.
§Parameters
target_id: Input consumed bycrate::config::find_app_root_for_target.app_dir_hint: Input consumed bycrate::config::find_app_root_for_target.repo_root: Input consumed bycrate::config::find_app_root_for_target.binary_dir: Input consumed bycrate::config::find_app_root_for_target.
§Returns
Returns Some when crate::config::find_app_root_for_target can produce a value and None otherwise.
§Examples
ⓘ
let _result = pharos_runtime_core::config::find_app_root_for_target("dev_docs", todo!(), std::path::Path::new("."), std::path::Path::new("bin"));§Related
crate::configfor adjacent helpers that share the same runtime surface.