DRY subcommand code. Add "show" subcommand.