[core] moved the logic of "show" command to the subcommand implementation