-
Notifications
You must be signed in to change notification settings - Fork 17
Option to redirect output and keep it on exit. #32
Conversation
args.redirectOutputTo ?: "", | ||
"${args.emulatorName}.output" | ||
) | ||
.apply { if (!args.keepOutputOnExit) deleteOnExit() } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting seems wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, you mean the indent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private fun outputFileForEmulator(args: Commands.Start) = File(args.redirectOutputTo ?: "", "${args.emulatorName}.output").apply {
if (!args.keepOutputOnExit) deleteOnExit()
}
or
private fun outputFileForEmulator(args: Commands.Start) =
File(args.redirectOutputTo ?: "", "${args.emulatorName}.output").apply {
if (!args.keepOutputOnExit) deleteOnExit()
}
Not sure what auto-formatter will do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok with 2 one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another one:
private fun outputFileForEmulator(args: Commands.Start) =
File(
args.redirectOutputTo ?: "",
"${args.emulatorName}.output"
).apply {
if (!args.keepOutputOnExit) deleteOnExit()
}
07ead26
to
eef36db
Compare
Niice, thanks! |
No description provided.