complete icon indicating copy to clipboard operation
complete copied to clipboard

complete: add SetExitFunc() to override os.Exit in tests

Open charlievieth opened this issue 3 years ago • 1 comments

This eliminates the need to use the unsupported bou.ke/monkey package, which fails to build on darwin/arm64. A better solution might be to remove the use of os.Exit entirely since it's only called with os.Exit(0) and exiting the program should be the responsibility of the caller to Complete.

charlievieth avatar Jan 17 '22 22:01 charlievieth

I think that this breaks the current package API. No?

posener avatar Feb 13 '22 20:02 posener