Skip to content

Commit 55deb94

Browse files
Expose ProcessRunner
1 parent 5fa5542 commit 55deb94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/io/chrisdavenport/shellfish/SubProcess.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ object SubProcess {
154154
}
155155

156156
// Shoutout to Jakub Kozłowski for his awesome code here.
157-
private trait ProcessRunner[F[_]] {
157+
trait ProcessRunner[F[_]] {
158158
// Runs a program and returns a handle to it.
159159
// The handle allows you to start writing to the standard input of the process using setInput
160160
// and see its output, as well as the standard error, in the other methods of the handle.
@@ -164,7 +164,7 @@ object SubProcess {
164164
def run(wd: String, program: List[String]): Resource[F, RunningProcess[F]]
165165
}
166166

167-
private object ProcessRunner {
167+
object ProcessRunner {
168168
def apply[F[_]](implicit F: ProcessRunner[F]): ProcessRunner[F] = F
169169

170170
implicit def instance[F[_]: Async]: ProcessRunner[F] = new ProcessRunner[F] {

0 commit comments

Comments
 (0)