phase2 / rig

Outrigger command line tool
MIT License
11 stars 8 forks source link

trying a different approach to requesting for admin privs #144

Closed febbraro closed 6 years ago

febbraro commented 6 years ago

A different take on privs. This could be expanded later to wrap requests into blocks surrounded by a request to escalate privileges. For now I just cleans up the existing.

grayside commented 6 years ago

I like this, it's a good start. This probably still needs some light touches for spinner compatibility, and rather than complicate every spot that sudo comes into place, we might as well flag the command structs involved with an Admin: true flag, which will also allow us to front-load the password prompt.