Skip to main content

Module declared

Module declared 

Source
Expand description

A DECLARED command executed as an activity.

DeclaredCommandAction is the sibling of super::ShellAction, and the difference is where the splitting happened. A ShellAction is handed a command LINE and parses it into an argv here. A DeclaredCommandAction is handed an argv that the AWL emitter already produced from a typed command declaration — program words, one templated slot per argument, declared environment bindings, a working directory and a timeout — so nothing on this side ever holds a string that could be re-split.

Everything else is deliberately the same machinery: execve with no shell interposed, the host environment cleared but for PATH, closed stdin, process-group containment, and line-by-line transcript streaming. Two executors that agreed about the argv and disagreed about the world the process runs in would be two different bodies wearing one declaration.

Structs§

DeclaredCommandAction
A declared command, ready to run as an activity.

Functions§

shape_command_result
Shape a successful command’s outcome into the action’s declared result.