Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Passing elevation reason to PrivilegesCLI.app as command argument #161

Open
c-beezy opened this issue Jan 10, 2025 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@c-beezy
Copy link

c-beezy commented Jan 10, 2025

When calling PrivilegesCLI from the command line, it would be extremely useful and simplify a lot of script logic if the reason elevation is needed could be passed to the CLI at invocation time via an argument such as --reason

Current-state example:

❯ /Applications/Privileges.app/Contents/MacOS/PrivilegesCLI --add
Please enter the reason you need administrator privileges (at least 10 characters): installing software
User someguy now has administrator privileges.
Administrator privileges expire in 120 minutes.

Desired improvement:

❯ /Applications/Privileges.app/Contents/MacOS/PrivilegesCLI --add --reason "Installing software"
User someguy now has administrator privileges.
Administrator privileges expire in 120 minutes.
@mthielemann mthielemann self-assigned this Jan 10, 2025
@mthielemann mthielemann added the enhancement New feature or request label Jan 10, 2025
@mthielemann
Copy link
Contributor

This will not make it into version 2.1, but I put it on the list for the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants