Skip to content

Q (plugin development): ya.manager_emit doesn't seem to do anything #1230

Closed Locked Answered by sxyazi
hankertrix asked this question in Q&A
Discussion options

You must be logged in to vote

The first argument of ya.manager_emit() is the command name without any parameters, while the parameters are in its second table. So you need:

- ya.manager_emit('shell "' .. command .. ' $0"', args)
+ ya.manager_emit('shell', { command .. ' "$0"', block = true, confirm = true })

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hankertrix
Comment options

Answer selected by hankertrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants