open fun foregroundHandler(handler: Handler<Void>): CommandProcess
Set a foreground handler, this handler is called when the command is running and put to foreground.
handler - the foreground handler
handler
Return this command