Comment by theanonymousone
3 days ago
I would like to ask an LLM to rewrite it as Python CLI script. Is it even possible, or some Swift-only functionality is necessary?
P.S. Some time ago I learnt through HN of a one-line command in macOS which revealed the power (Wattage) of the connected charger. Can't find it now, but it was very useful.
Python script that Claude Code wrote and I tweaked for peeking at marked USB-C cables: https://news.ycombinator.com/item?id=47677607 which seems pretty cool but is quite complex, and might be overkill)
(edit3: different method for printing adapter wattage)
`system_profiler SPPowerDataType | grep "Wattage"`?
Yes, something like this. Thanks!