Improving the readme.
This commit is contained in:
parent
3110bf6201
commit
85c6f15626
|
|
@ -1,4 +1,6 @@
|
|||
# Beau
|
||||
# Sublime Beau
|
||||
|
||||

|
||||
|
||||
## Description
|
||||
This plugin allows you to use beau on your beau files without having to leave sublime.
|
||||
|
|
|
|||
14
beau.py
14
beau.py
|
|
@ -26,13 +26,7 @@ class BeauCommand(sublime_plugin.TextCommand):
|
|||
active_window.status_message('Beau can only be ran on yaml files.')
|
||||
return
|
||||
|
||||
print([
|
||||
settings,
|
||||
self.path,
|
||||
'-c',
|
||||
active_view.file_name(),
|
||||
'--clean-list'
|
||||
])
|
||||
print('Using ' + self.path)
|
||||
|
||||
proc = Popen([
|
||||
self.path,
|
||||
|
|
@ -91,10 +85,16 @@ class BeauCommand(sublime_plugin.TextCommand):
|
|||
alias
|
||||
], stdin=PIPE, stdout=PIPE, stderr=PIPE, shell=True)
|
||||
|
||||
for line in iter(proc.stderr.readline, b''):
|
||||
print(line)
|
||||
active_window.status_message(line.decode("utf-8"))
|
||||
|
||||
response = []
|
||||
for line in iter(proc.stdout.readline, b''):
|
||||
response.append(line.rstrip())
|
||||
|
||||
active_window.status_message('')
|
||||
|
||||
status, endpoint, headers, body = response
|
||||
|
||||
status = status.decode('utf-8')
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 269 KiB |
Loading…
Reference in New Issue