[PATCH v2 04/14] cli/reply: unify reply format functions