Dude, this is NEVER ok. What in the world??? A third party LIBRARY running sudo commands? That’s just insane.
You just fail and print a nice error message telling the user exactly what they need to do, including the exact apt command or whatever that they need to run.
You just fail and print a nice error message telling the user exactly what they need to do, including the exact apt command or whatever that they need to run.