#254 Add an option for logging the output of commands

This commit is contained in:
w0rp
2017-02-16 23:18:57 +00:00
parent 843370b96f
commit eac0a41ae1
7 changed files with 144 additions and 7 deletions

View File

@@ -76,6 +76,24 @@ function! s:EchoCommandHistory() abort
endif
echom '(' . l:status_message . ') ' . string(l:item.command)
if g:ale_history_log_output && has_key(l:item, 'output')
if empty(l:item.output)
echom ''
echom '<<<NO OUTPUT RETURNED>>>'
echom ''
else
echom ''
echom '<<<OUTPUT STARTS>>>'
for l:line in l:item.output
echom l:line
endfor
echom '<<<OUTPUT ENDS>>>'
echom ''
endif
endif
endfor
endfunction