mirror of
https://github.com/rwinkhart/libmutton.git
synced 2026-08-28 04:46:42 -04:00
Rename "returnOnExit" build tag to "interactive"
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
//go:build !returnOnExit
|
||||
//go:build !interactive
|
||||
|
||||
package core
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
//go:build returnOnExit
|
||||
//go:build interactive
|
||||
|
||||
package core
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build (windows || darwin || android || termux || wsl) && !returnOnExit
|
||||
//go:build (windows || darwin || android || termux || wsl) && !interactive
|
||||
|
||||
package core
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build !windows && !darwin && !android && !termux && !wsl && !returnOnExit
|
||||
//go:build !windows && !darwin && !android && !termux && !wsl && !interactive
|
||||
|
||||
package core
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build (windows || darwin || android || termux || wsl) && returnOnExit
|
||||
//go:build (windows || darwin || android || termux || wsl) && interactive
|
||||
|
||||
package core
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
//go:build !windows && !darwin && !android && !termux && !wsl && returnOnExit
|
||||
//go:build !windows && !darwin && !android && !termux && !wsl && interactive
|
||||
|
||||
package core
|
||||
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@ If any functionality in these two packages proves to be difficult to implement i
|
||||
Custom build tags can (and sometimes must) be used to achieve desired results.
|
||||
|
||||
These are as follows:
|
||||
- `returnOnExit`: If making an interactive interface (GUI/TUI/interactive CLI), you probably need to use this build tag. Without it, your entire program will exit after any given operation is completed. This behavior is only desired for non-interactive CLI implementations, such as MUTN. Currently, errors will result in the program exiting **even with this build tag**. This may be changed in the future (under evaluation).
|
||||
- `interactive`: If making an interactive interface (GUI/TUI/interactive CLI), you probably need to use this build tag. Without it, your entire program will exit after any given operation is completed. This behavior is only desired for non-interactive CLI implementations, such as MUTN. Currently, errors will result in the program exiting **even with this build tag**. This may be changed in the future (under evaluation).
|
||||
- `wsl`: Allows creating a Linux binary that can interact with the Windows clipboard (for WSL)
|
||||
- `termux`: Allows creating a Linux binary that can interact with the Termux clipboard (for Android)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user