Implement list command.