Parameters
- trimmedLine: string
- startTime: number
- timingEnabled: boolean
Returns Promise<
| {
errors?: { message: string; type: "error"
| "warning" }[];
model?: { data: unknown; kind: string };
rendered: string;
renderedErr?: string;
status: "error" | "ok";
trace?: {
executed?: string;
input: string;
proposed: string;
validated: boolean;
};
}
| null,
>
The command's envelope, or null when the line held no tokens.
Executes one plain command line (no shell escape, batch, redirect or pipe) and returns its envelope.
Mirrors the historical direct-execution order exactly: help flag short-circuit, wildcard expansion, simulated plugin execution, then table dispatch. Timing is printed at the same points the shell always printed it (after plugin execution or dispatch; never after help or a wildcard failure).