pub fn enqueue_command(queue_path: &Path, cmd: &QueuedCommand) -> Result<()>
Write a command to the queue file.