in tooling/rib-intellij-plugin/src/main/kotlin/com/uber/intellij/plugin/android/rib/CommandLineUtils.kt [56:74]
public fun executeWithLineOutput(
project: Project,
command: String,
vararg params: String,
): ProcessOutput {
val commandLine = GeneralCommandLine(command)
for (p in params) {
commandLine.addParameter(p)
}
commandLine.setWorkDirectory(project.basePath)
val process = commandLine.createProcess()
process.waitFor()
return ProcessOutput(
consumeInputStream(process.inputStream),
consumeInputStream(process.errorStream),
)
}