logoalt Hacker News

theanonymousonetoday at 11:03 AM1 replyview on HN

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.


Replies

krelastoday at 11:28 AM

`system_profiler SPPowerDataType | grep "Wattage"`?

show 1 reply