Commit 23139d43 authored by yann300's avatar yann300

listen on event

parent dcef83ad
...@@ -104,6 +104,10 @@ class Terminal extends Plugin { ...@@ -104,6 +104,10 @@ class Terminal extends Plugin {
this.on('scriptRunner', 'error', (msg) => { this.on('scriptRunner', 'error', (msg) => {
this.commands.error.apply(this.commands, msg.data) this.commands.error.apply(this.commands, msg.data)
}) })
this.on('git', 'log', (result) => {
this.commands.html.apply(this.commands, yo`<pre>${result}</pre>`)
})
} }
onDeactivation () { onDeactivation () {
...@@ -111,6 +115,7 @@ class Terminal extends Plugin { ...@@ -111,6 +115,7 @@ class Terminal extends Plugin {
this.off('scriptRunner', 'info') this.off('scriptRunner', 'info')
this.off('scriptRunner', 'warn') this.off('scriptRunner', 'warn')
this.off('scriptRunner', 'error') this.off('scriptRunner', 'error')
this.off('git', 'log')
} }
logHtml (html) { logHtml (html) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment