There is this great question: What happens if you plug more than one charger in the new MacBook Pro (2016)?
It doesn't tell me how to find out from which source the MacBook is charging though. Right this moment I have a power bank and a MacBook charger (small, not proper wattage) connected to my MacBook Pro and my battery is at 3%. I'd like to know which one I can unplug.
Is there a way to know which port is giving the power? I'm looking for a precise answer, e.g. from a command line tool. It'd also be good to know with exactly how much Watt it's charging. I don't want to rely on whatever is indicated on the charger.