sbt clear screen command

前端 未结 3 741
你的背包
你的背包 2020-12-28 15:33

I am learning sbt build tool. I use interpreted sbt. I run lot of commands and get lot of output which clutters up the screen.

The question

3条回答
  •  梦谈多话
    2020-12-28 16:16

    This specifically helps when you're doing something in continuous mode, ala `compile:

    maxErrors := 5
    triggeredMessage := Watched.clearWhenTriggered
    

    This works as of 0.13.7. The second line clears the screen before each command runs. The first line limits the number of errors. With this config, you only ever have one screen full of errors to work through. Obviously could adjust maxErrors depending on your sbt window.

提交回复
热议问题