fun build()

in plugin-bazel-agent/src/main/kotlin/jetbrains/buildServer/bazel/BazelCommandLineBuilder.kt [12:23]


    fun build(command: BazelCommand): ProgramCommandLine {
        val executable = getExecutablePath()
        val environmentVariables = getEnvironmentVariables()
        environmentVariables.getOrPut("HOME") { System.getProperty("user.home") }

        return SimpleProgramCommandLine(
            environmentVariables,
            _workingDirectoryProvider.workingDirectory.absolutePath,
            executable,
            _argumentsConverter.convert(command.arguments).toList(),
        )
    }