Add ExitState.SetOutputTarget method to provide client code the ability to override the destination output sink. This could be used to redirect output to a file, a tee writer or an in-memory buffer for test purposes.
Default to os.Stdout if user does not specify a custom output sink.
Add ExitState.SetOutputTarget method to provide client code the ability to override the destination output sink. This could be used to redirect output to a file, a tee writer or an in-memory buffer for test purposes.
Default to os.Stdout if user does not specify a custom output sink.
fixes GH-140