cli/show: move formatter structs closer to where they're needed