You cannot do this by simply adding everything to the command line arguments. You have to implement a state machine that reacts on the output from gpg.
You have to do it the same way as all other key editing commands in keyEditor.jsm. See for example how "adduid" is implemented.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Not understanding why the function editKey() does not work, but the functions are declared through const EnigmailKeyEditor work ..(example: EnigmailKeyEditor.addUid(...))
Error: ReferenceError: editKey is not defined
Source: chrome://enigmailextended/content/scripts/overlay.js
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
editKey is defined in keyEditor.jsm, and is not exported; you cannot access it from outside of keyEditor.jsm. Therefore, you can't do this in an overlay.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello colleagues.
Is it possible to add your custom revocation key to private key of the user?
I'm trying to write a function:
And have error:
Please, help.
I fix this error:
But how i do command without terminal interaction?

Current situation:
Last edit: Vitaliy Demchuk 2016-09-09
You cannot do this by simply adding everything to the command line arguments. You have to implement a state machine that reacts on the output from gpg.
You have to do it the same way as all other key editing commands in keyEditor.jsm. See for example how "adduid" is implemented.
I changed the code and got a new error :(
Not understanding why the function editKey() does not work, but the functions are declared through const EnigmailKeyEditor work ..(example: EnigmailKeyEditor.addUid(...))
editKey is defined in keyEditor.jsm, and is not exported; you cannot access it from outside of keyEditor.jsm. Therefore, you can't do this in an overlay.
Thank you explained.