Add the ls-tree command.
Abstracted boilerplate code.