kv-map: support commands that don't use {stdin,stdout}