Skip to content

Commit

Permalink
Eliminate appending
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Oct 3, 2024
1 parent 78bff97 commit 5636b6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/guillotine.Process.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ import vacuous.*
object Process:
given [ChunkType, CommandType <: Label, ResultType]
(using ji.OutputStream is Writable by ChunkType)
=> Process[CommandType, ResultType] is Appendable by ChunkType as appendable =
=> Process[CommandType, ResultType] is Writable by ChunkType as writable =

(process, stream) => process.stdin(stream)

given [CommandType <: Label, ResultType](using Tactic[StreamError])
=> Process[CommandType, ResultType] is Appendable by Text as appendableText =
=> Process[CommandType, ResultType] is Writable by Text as writableText =
(process, stream) => process.stdin(stream.map(_.sysBytes))

class Process[+ExecType <: Label, ResultType](process: java.lang.Process) extends ProcessRef:
Expand Down

0 comments on commit 5636b6f

Please sign in to comment.