Updated to support Beau 0.5.0

This commit is contained in:
David Diaz 2017-12-23 01:39:35 -06:00
parent fb1d062fdd
commit d44e982585
1 changed files with 20 additions and 5 deletions

25
beau.py
View File

@ -28,13 +28,20 @@ class BeauCommand(sublime_plugin.TextCommand):
return return
print('Using ' + self.path) print('Using ' + self.path)
print([ self.path, '-c', active_view.file_name(), '--clean-list' ]) print([
self.path,
'-c',
active_view.file_name(),
'list',
'--no-format'
])
proc = Popen([ proc = Popen([
self.path, self.path,
'-c', '-c',
active_view.file_name(), active_view.file_name(),
'--clean-list' 'list',
'--no-format'
], stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=self.is_windows()) ], stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=self.is_windows())
for line in iter(proc.stderr.readline, b''): for line in iter(proc.stderr.readline, b''):
@ -79,14 +86,22 @@ class BeauCommand(sublime_plugin.TextCommand):
active_window.status_message('Executing: ' + alias) active_window.status_message('Executing: ' + alias)
print([ self.path, '-c', active_view.file_name(), '-R', alias ]) print([
self.path,
'-c',
active_view.file_name(),
'request',
alias,
'--no-format'
])
proc = Popen([ proc = Popen([
self.path, self.path,
'-c', '-c',
active_view.file_name(), active_view.file_name(),
'-R', 'request',
alias alias,
'--no-format'
], stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=self.is_windows()) ], stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=self.is_windows())
for line in iter(proc.stderr.readline, b''): for line in iter(proc.stderr.readline, b''):