refactor(commander) readDir