Open
Description
I'd like to create a custom command, and maybe make a plugin out of it for those who might need it.
I don't see any documentation on how to do it, and current plugins don't add commands.
Current plugin looks like this
module.exports = {
loadPlugin: function() {
module.exports = Object.assign(module.exports, {
'init:api:addfunction:hook': function() {
console.log('custom command')
return {};
}
});
delete module.exports.loadPlugin;
},
name: 'fresh',
hooks: [
'init:api:addfunction:hook'
]
};
It's loaded successfully as a plugin but I can't find out how to add it to the bin file & add it as an actual command
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Metadata
Metadata
Assignees
Labels
No labels