pub fn build_docker_state_snippet(container_name: &str) -> StringExpand description
Shell fragment reading the container’s terminal state.
The four whitespace-free fields are split with set -- rather than the
${var%% *} / ${var##* } pair the two-field version used: those only ever
reach the first and the last field. State.Error is read separately because
it is free-form text that can contain spaces.