Refactor to implement showing tree (ref gh-7).
Implement -N (dry-run with tree) option (close gh-7).
Extract output code for -N as a function.