pub fn render_response_with<F>( command: &str, json_output: bool, data: Value, text: F, ) -> Stringwhere F: FnOnce() -> String,
Render either the shared JSON envelope or lazily-built plain text for a command response.