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

4 enhancement allow custom known error #5

Merged
merged 5 commits into from
Jul 17, 2022

Conversation

NebzHB
Copy link
Owner

@NebzHB NebzHB commented Jul 17, 2022

No description provided.

`add_fix_handler "string to grep in errors" "message to show if the string is found" "command to fix the error"`
or
```
myFixFunc() {
  echo "this is my fix"
}
add_fix_handler "string to grep in errors" "message to show if the string is found" myFixFunc
```
or
```
myTestFunct() {
  echo "this is my test"
  return 0; # 0 will trigger the fix, other return don't trigger the fix
}
add_fix_handler myTestFunct "message to show if the string is found" "command to fix the error"
```
or
`add_fix_handler "string to grep in errors" "*short message to show in default message" "command to fix the error"`
or
`add_fix_handler "string to grep in errors" "" "command to fix the error" #empty message uses the default message with "string to grep in errors"`
@NebzHB NebzHB linked an issue Jul 17, 2022 that may be closed by this pull request
@NebzHB NebzHB merged commit 7005a12 into master Jul 17, 2022
@NebzHB NebzHB deleted the 4-enhancement-allow-custom-known-error branch July 17, 2022 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: Allow custom "Known error"
1 participant