You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allows a pm to set auto_escalate[]. When this var is set its value will be used to populate ${root_user} for other pms. This is useful to mimic autosudoing uis behaviors like yay for other pms.
I tested every command to check whether they needed root permissions or not to function and prepended the command which did. However, this doesn't mean I didn't miss any or miss-categorize so I'll keep checking each commands behavior as I use this pr.
The Bedrock documentation would need to be updated to reflect this new variable of course.
Current issues after a day of usage:
Caching package database requires root and does not currently automatically escalate. I believe this was an issue already present in pmm that hadn't made itself apparent yet. yay, the only pm and pmm ui which a user would run without privileges, is affected. Potential solutions can be to not cache when run as user like cache_package_manager_list or to escalate automatically using auto_escalate[]. What do you think?
I believe pmm has some internal logic for the ${unprivileged_user} var which cuts the extra space out from the command preview when it is unpopulated, I need to replicate this behavior for ${root_user}. - Fixed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allows a pm to set
auto_escalate[]. When this var is set its value will be used to populate${root_user}for other pms. This is useful to mimic autosudoing uis behaviors like yay for other pms.I tested every command to check whether they needed root permissions or not to function and prepended the command which did. However, this doesn't mean I didn't miss any or miss-categorize so I'll keep checking each commands behavior as I use this pr.
The Bedrock documentation would need to be updated to reflect this new variable of course.