We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The general plan I have in my head:
bindgenRunScalafmt
Boolean
false
scalafmtOnly
We don't need to depend on sbt-scalafmt, we can look up the task by name:
val task = InputKey[Unit]("scalafmtOnly")
And then refer to it by (Compile / task).toTask(" <list of files, space-separated>").
(Compile / task).toTask(" <list of files, space-separated>")
Can use Def.sequential to do both tasks:
Def.sequential( codeGeneratingTask, Def.taskDyn { // get list of generated files somehow (Compile / task).toTask(s" ${files.mkString(" ")}") } )
To get list of generated files, we can modify the existing tasks to return a list of files (unless they already do that).
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The general plan I have in my head:
bindgenRunScalafmt
- newBoolean
setting, default tofalse
scalafmtOnly
with the list of generated filesWe don't need to depend on sbt-scalafmt, we can look up the task by name:
And then refer to it by
(Compile / task).toTask(" <list of files, space-separated>")
.Can use Def.sequential to do both tasks:
To get list of generated files, we can modify the existing tasks to return a list of files (unless they already do that).
The text was updated successfully, but these errors were encountered: