pub fn walk_commands(
cmd_name: &str,
tail: &[String],
top_commands: &BTreeMap<String, CommandSpec>,
project_root: &Path,
env: Option<&str>,
) -> WalkOutcomeExpand description
Walk the command graph from a top-level name and produce a
WalkOutcome. Every transition is pure: the walker never spawns a
process, prints to stdout, or reads the process cwd. Inputs carry all
the context needed.
cmd_name: the top-level token the user typed (fdl <cmd_name> ...).tail: positional args followingcmd_name(typically&args[2..]).top_commands: the rootcommands:block (usually&project.commands).project_root: the directory containing the basefdl.yml; acts as the initialcurrent_dirfor Path resolution.env: active overlay name, threaded to eachload_command_with_envcall so descended configs pick up env-layered fields.