cli/reply: use dedicated functions for reply to mapping