Add opportunity to get resources via cli

I mean, you should `print json.dumps(get_resources(src))` instead