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
--- The new patterngh.run {
args=args,
cb= {
success=success_case,
failure=failure_case,
}
}
--- Maybe there is a default of utils.error if no failure case is provided
There are a few that do different checks on the stderr. Is that because they are doing something different or just
didn't know how to handle the cases.
Also fzf breaks this pattern and calls the callback after the if block
This pattern is so common that I think it might be worth a refactor to accommodate it.
The pattern:
See cases here: https://github.com/search?q=repo%3Apwntester%2Focto.nvim+stderr%29&type=code
The refactor:
There are a few that do different checks on the stderr. Is that because they are doing something different or just
didn't know how to handle the cases.
Also fzf breaks this pattern and calls the callback after the if block
Thoughts here? @pwntester @GuillaumeLagrange and anyone else who has thoughts on this.
I think that this would make the code way more modular since the success cases tend to make pickers from the data.
The text was updated successfully, but these errors were encountered: