mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
docs: cleanup
This commit is contained in:
parent
7506af9147
commit
3eba91caf6
4 changed files with 52 additions and 19 deletions
37
rules/_PR_PRIVILEGE.toml
Normal file
37
rules/_PR_PRIVILEGE.toml
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
command = "_PR_privilege"
|
||||
|
||||
[[match_err]]
|
||||
pattern = [
|
||||
"as root",
|
||||
"authentication is required",
|
||||
"be root",
|
||||
"be superuser",
|
||||
"cannot access",
|
||||
"eacces",
|
||||
"edspermissionerror",
|
||||
"insufficient privileges",
|
||||
"need root",
|
||||
"non-root users cannot",
|
||||
"not super-user",
|
||||
"only root can",
|
||||
"operation not permitted",
|
||||
"permission denied",
|
||||
"requires root",
|
||||
"root privilege",
|
||||
"root user",
|
||||
"sudorequirederror",
|
||||
"superuser privilege",
|
||||
"unless you are root",
|
||||
"can not open a temporary file",
|
||||
"use `sudo`",
|
||||
"you don't have access",
|
||||
"you don't have write permissions"
|
||||
]
|
||||
suggest = [
|
||||
'''
|
||||
#[executable(sudo)]
|
||||
sudo {{command}} ''',
|
||||
'''
|
||||
#[executable(doas)]
|
||||
doas {{command}} '''
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue