Update black.coffee
This commit is contained in:
parent
1b7d3668d0
commit
d4fa72094f
|
@ -41,6 +41,7 @@ module.exports = class Black extends Beautifier
|
||||||
|
|
||||||
beautify: (text, language, options, context) ->
|
beautify: (text, language, options, context) ->
|
||||||
cwd = context.filePath and path.dirname context.filePath
|
cwd = context.filePath and path.dirname context.filePath
|
||||||
|
# `-` as filename reads from stdin
|
||||||
@exe("black").run(["-"], {
|
@exe("black").run(["-"], {
|
||||||
cwd: cwd
|
cwd: cwd
|
||||||
onStdin: (stdin) ->
|
onStdin: (stdin) ->
|
||||||
|
|
Loading…
Reference in New Issue