override fun handle()

in plugin-bazel-event-service/src/main/kotlin/bazel/handlers/build/UnstructuredCommandLineHandler.kt [12:26]


    override fun handle(ctx: BuildEventHandlerContext): Boolean {
        if (!ctx.event.hasUnstructuredCommandLine()) {
            return false
        }

        if (ctx.verbosity.atLeast(Verbosity.Detailed)) {
            val cmd =
                ctx.event.unstructuredCommandLine
                    .argsList
                    .joinToStringEscaped()
            ctx.writer.message("Run " + cmd.apply(Color.Details))
        }

        return true
    }