How to start sbt console and automatically evaluate some expressions?

前端 未结 2 816
日久生厌
日久生厌 2021-01-21 02:01

When using sbt console I find myself repeatedly entering some import statements. It would be great if there was a way to tell sbt to always run commands. Is there

2条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-21 02:37

    You can use initialCommands:

    initialCommands in console := """import my.app._
    import my.app.is.sooo.cool._"""
    

提交回复
热议问题