pub fn format_command(cmd: &Command) -> String
Format a Command into a single-line string suitable for sending to the server.
Command