Adds list command.
Since it was simple to implement, I decided to give it a shot.