pub enum WalkOutcome {
RunScript {
command: String,
docker: Option<String>,
cwd: PathBuf,
},
ExecCommand {
config: Box<CommandConfig>,
preset: Option<String>,
tail: Vec<String>,
cmd_dir: PathBuf,
},
RefreshSchema {
config: Box<CommandConfig>,
cmd_dir: PathBuf,
cmd_name: String,
},
PrintCommandHelp {
config: Box<CommandConfig>,
name: String,
},
PrintPresetHelp {
config: Box<CommandConfig>,
parent_label: String,
preset_name: String,
},
PrintRunHelp {
name: String,
description: Option<String>,
run: String,
docker: Option<String>,
},
UnknownCommand {
name: String,
},
PresetAtTopLevel {
name: String,
},
Error(String),
}Expand description
What the outer walker resolved a user invocation to. The caller owns every impure action (spawning, printing, exit code); the walker just returns the terminal state.
Variants§
RunScript
Top-level or nested Run — caller runs the inline script.
ExecCommand
Path-or-Preset terminal → caller invokes the child’s entry. For
a Preset, preset is the preset name inside the enclosing
commands: block; for a Path-Exec it is None.
RefreshSchema
Path terminal with --refresh-schema in the tail.
PrintCommandHelp
Path terminal with --help / -h in the tail.
PrintPresetHelp
Preset terminal with --help / -h in the tail.
PrintRunHelp
Run terminal with --help / -h in the tail.
UnknownCommand
The top-level or descended-into name doesn’t exist in the current
commands: map. Caller prints the project-help banner.
PresetAtTopLevel
A Preset-kind command at the top level has nothing to reuse an
entry: from. Caller prints a pointer to the fix.
Error(String)
Structural error: spec declares both run: and path:, or a
child fdl.yml failed to load / parse. String is the diagnostic.