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

Provide a way for hook event to customize its name #37

Open
Rarst opened this issue Jun 26, 2019 · 0 comments
Open

Provide a way for hook event to customize its name #37

Rarst opened this issue Jun 26, 2019 · 0 comments

Comments

@Rarst
Copy link
Owner

Rarst commented Jun 26, 2019

I currently suffix reoccurring events with a number, though what I really wanted to implement for these is meaningful dynamic name generation.

I postponed this because I didn't feel I have a good take and didn't want to complicate new (and much cleaner) hook event configuration format.

Still this is something that should probably happen and challenges are it would need a (potentially complex) callback, as well as access to non-first argument of the hook.

Tentatively I think about moving in direction of configuration objects (either directly created or intermediary generated from flat array configuration) with distinct interfaces, let's say mandatory Boundary for determining start/stop of the event and optional Name for processing hook arguments and generating a dynamic name.

@Rarst Rarst self-assigned this Jun 26, 2019
@Rarst Rarst removed their assignment Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant