fun appendFileIfNotBlank()

in plugin-bazel-event-service/src/main/kotlin/bazel/handlers/build/ActionExecutedHandler.kt [49:57]


        fun appendFileIfNotBlank(
            file: BuildEventStreamProtos.File,
            isError: Boolean = false,
        ) {
            val content = readFile(fileConverter.convert(file), verbosity, writer).trim()
            if (content.isNotEmpty()) {
                appendLine(if (isError) content.apply(Color.Error) else content)
            }
        }