Factor out the printing code into separate functions
Factor out the printing code into separate functions

We will reuse this for listing applications in the future.

matthiasclasen/xdg-app,handsome-feng/flatpak,thiblahute/xdg-app,handsome-feng/flatpak,matthiasclasen/xdg-app,thiblahute/xdg-app,alexlarsson/xdg-app,chergert/xdg-app,chergert/xdg-app,amigadave/flatpak,handsome-feng/flatpak,alexlarsson/xdg-app,matthiasclasen/flatpak,thiblahute/xdg-app,GeorgesStavracas/flatpak,amigadave/flatpak,flatpak/flatpak,flatpak/flatpak,flatpak/flatpak,matthiasclasen/flatpak,matthiasclasen/xdg-app,alexlarsson/xdg-app,GeorgesStavracas/flatpak,handsome-feng/flatpak,matthiasclasen/flatpak,flatpak/flatpak,GeorgesStavracas/flatpak,handsome-feng/flatpak,flatpak/flatpak,chergert/xdg-app,amigadave/flatpak,GeorgesStavracas/flatpak,amigadave/flatpak,matthiasclasen/flatpak,thiblahute/xdg-app,matthiasclasen/flatpak,GeorgesStavracas/flatpak,chergert/xdg-app,matthiasclasen/xdg-app,alexlarsson/xdg-app