Skip to main content

resolve_root

Function resolve_root 

Source
pub fn resolve_root(
    target: &Utf8Path,
    output: Option<&Utf8Path>,
    env: Option<&str>,
    state_root: &Utf8Path,
) -> Result<(Utf8PathBuf, RootSource), AppError>
Expand description

Where a stage goes, and which rule decided.

The flag wins, then the automation base, then this tool’s state root. The base is a directory of stages rather than one stage, so an automation that stages many targets names one variable.

§Errors

AppError::Usage when the resolved path is relative.