All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.avito.utils.ProcessRunner.kt Maven / Gradle / Ivy

Go to download

Collection of infrastructure libraries and gradle plugins of Avito Android project

There is a newer version: 2023.22
Show newest version
package com.avito.utils

import com.avito.android.Result
import java.io.File
import java.time.Duration

public interface ProcessRunner {

    /**
     * @param command i.e. ls -la
     *
     * @return output команды, если exit code = 0
     */
    public fun run(command: String, timeout: Duration): Result

    public fun spawn(command: String, outputTo: File?): Process

    public companion object {

        public fun create(workingDirectory: File?): ProcessRunner = RealProcessRunner(workingDirectory)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy