@@ -13,20 +13,20 @@ object call {
1313 * @see [[os.proc.call ]]
1414 */
1515 def apply (
16- cmd : Shellable ,
17- env : Map [String , String ] = null ,
18- // Make sure `cwd` only comes after `env`, so `os.call("foo", path)` is a compile error
19- // since the correct syntax is `os.call(("foo", path))`
20- cwd : Path = null ,
21- stdin : ProcessInput = Pipe ,
22- stdout : ProcessOutput = Pipe ,
23- stderr : ProcessOutput = os.Inherit ,
24- mergeErrIntoOut : Boolean = false ,
25- timeout : Long = - 1 ,
26- check : Boolean = true ,
27- propagateEnv : Boolean = true ,
28- shutdownGracePeriod : Long = 100 ,
29- shutdownHook : Boolean = false
16+ cmd : Shellable ,
17+ env : Map [String , String ] = null ,
18+ // Make sure `cwd` only comes after `env`, so `os.call("foo", path)` is a compile error
19+ // since the correct syntax is `os.call(("foo", path))`
20+ cwd : Path = null ,
21+ stdin : ProcessInput = Pipe ,
22+ stdout : ProcessOutput = Pipe ,
23+ stderr : ProcessOutput = os.Inherit ,
24+ mergeErrIntoOut : Boolean = false ,
25+ timeout : Long = - 1 ,
26+ check : Boolean = true ,
27+ propagateEnv : Boolean = true ,
28+ shutdownGracePeriod : Long = 100 ,
29+ shutdownHook : Boolean = false
3030 ): CommandResult = {
3131 os.proc(cmd).call(
3232 cwd = cwd,
@@ -186,18 +186,18 @@ case class proc(command: Shellable*) {
186186 * issued. Check the documentation for your JDK's `Process.destroy`.
187187 */
188188 def call (
189- cwd : Path = null ,
190- env : Map [String , String ] = null ,
191- stdin : ProcessInput = Pipe ,
192- stdout : ProcessOutput = Pipe ,
193- stderr : ProcessOutput = os.Inherit ,
194- mergeErrIntoOut : Boolean = false ,
195- timeout : Long = - 1 ,
196- check : Boolean = true ,
197- propagateEnv : Boolean = true ,
198- // this cannot be next to `timeout` as this will introduce a bin-compat break (default arguments are numbered in the bytecode)
199- shutdownGracePeriod : Long = 100 ,
200- shutdownHook : Boolean = false
189+ cwd : Path = null ,
190+ env : Map [String , String ] = null ,
191+ stdin : ProcessInput = Pipe ,
192+ stdout : ProcessOutput = Pipe ,
193+ stderr : ProcessOutput = os.Inherit ,
194+ mergeErrIntoOut : Boolean = false ,
195+ timeout : Long = - 1 ,
196+ check : Boolean = true ,
197+ propagateEnv : Boolean = true ,
198+ // this cannot be next to `timeout` as this will introduce a bin-compat break (default arguments are numbered in the bytecode)
199+ shutdownGracePeriod : Long = 100 ,
200+ shutdownHook : Boolean = false
201201 ): CommandResult = {
202202
203203 val chunks = new java.util.concurrent.ConcurrentLinkedQueue [Either [geny.Bytes , geny.Bytes ]]
@@ -327,7 +327,7 @@ case class proc(command: Shellable*) {
327327 override def run (): Unit = {
328328 while (proc.wrapped.isAlive) Thread .sleep(1 )
329329 try Runtime .getRuntime().removeShutdownHook(t)
330- catch { case e : Throwable => /* do nothing*/ }
330+ catch { case e : Throwable => /* do nothing*/ }
331331 }
332332 }
333333 )
0 commit comments