refactor(commander) getDirContent