Skip to content

Add event system. #11

Description

@jackyyf

当前所有lib都没有办法得知当前运行的情况,而必须靠provider去主动调用……
因而我希望加入一个事件系统,使得程序和provider都能触发一些事件,而允许lib在这些事件上面挂上钩子触发

这个issue里面讨论一下需要加入的事件列表吧,并且带上传入的参数,初步列一下列表,参数之后再详细讨论:
全局触发:

add_argument(pre_parse_argument)
pre_call(post_parse_argument)/post_call(at_exit)
on_exception
(pre_loadconfig/post_loadconfig)?

provider触发:

pre_push/post_push
pre_pull/post_pull
pre_auth/post_auth

每个event对callback的传入参数在之后列一个列表然后写到wiki里面去吧……

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions