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

fix: attach plugin args to the entry method for better future optimization possibilities #627

Merged
merged 1 commit into from
Feb 4, 2024

Conversation

sxyazi
Copy link
Owner

@sxyazi sxyazi commented Feb 4, 2024

Fixes #587

As no new version has been released yet, this is not considered a breaking change.

Now please use:

return {
  entry = function(self, args)
    ya.err(args[1]) -- "foo"
    ya.err(args[2]) -- "bar"
  end,
}

to access the arguments of the plugin.

@sxyazi sxyazi changed the title feat: attach plugin args to the entry method for better future optimization possibilities fix: attach plugin args to the entry method for better future optimization possibilities Feb 4, 2024
@sxyazi sxyazi merged commit 715fbf5 into main Feb 4, 2024
3 checks passed
@sxyazi sxyazi deleted the pr-b19a3696 branch February 4, 2024 18:49
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant