[PATCH v4 2/2] whoami: Refactor and add more commands.