Remix.run Logo
theanonymousone 3 hours 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.

krelas 3 hours ago | parent [-]

`system_profiler SPPowerDataType | grep "Wattage"`?

theanonymousone an hour ago | parent [-]

Yes, something like this. Thanks!