From 049af8339052bd003d2357d7a9a9fa0d09f4695e Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sat, 21 Dec 2024 16:07:45 -0500 Subject: [PATCH] Rename "returnOnExit" build tag to "interactive" --- core/exitHard.go | 2 +- core/exitSoft.go | 2 +- core/launchClipClearProcessCLIGeneric.go | 2 +- core/launchClipClearProcessCLIUNIX.go | 2 +- core/launchClipClearProcessGUIGeneric.go | 2 +- core/launchClipClearProcessGUIUNIX.go | 2 +- wiki/developers.md | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/core/exitHard.go b/core/exitHard.go index f59292b..2a2b431 100644 --- a/core/exitHard.go +++ b/core/exitHard.go @@ -1,4 +1,4 @@ -//go:build !returnOnExit +//go:build !interactive package core diff --git a/core/exitSoft.go b/core/exitSoft.go index 5aededf..f2d3af0 100644 --- a/core/exitSoft.go +++ b/core/exitSoft.go @@ -1,4 +1,4 @@ -//go:build returnOnExit +//go:build interactive package core diff --git a/core/launchClipClearProcessCLIGeneric.go b/core/launchClipClearProcessCLIGeneric.go index 6deef47..6c371b6 100644 --- a/core/launchClipClearProcessCLIGeneric.go +++ b/core/launchClipClearProcessCLIGeneric.go @@ -1,4 +1,4 @@ -//go:build (windows || darwin || android || termux || wsl) && !returnOnExit +//go:build (windows || darwin || android || termux || wsl) && !interactive package core diff --git a/core/launchClipClearProcessCLIUNIX.go b/core/launchClipClearProcessCLIUNIX.go index d461abf..5f5545d 100644 --- a/core/launchClipClearProcessCLIUNIX.go +++ b/core/launchClipClearProcessCLIUNIX.go @@ -1,4 +1,4 @@ -//go:build !windows && !darwin && !android && !termux && !wsl && !returnOnExit +//go:build !windows && !darwin && !android && !termux && !wsl && !interactive package core diff --git a/core/launchClipClearProcessGUIGeneric.go b/core/launchClipClearProcessGUIGeneric.go index 97b1377..bafda13 100644 --- a/core/launchClipClearProcessGUIGeneric.go +++ b/core/launchClipClearProcessGUIGeneric.go @@ -1,4 +1,4 @@ -//go:build (windows || darwin || android || termux || wsl) && returnOnExit +//go:build (windows || darwin || android || termux || wsl) && interactive package core diff --git a/core/launchClipClearProcessGUIUNIX.go b/core/launchClipClearProcessGUIUNIX.go index 7195dc3..31a7566 100644 --- a/core/launchClipClearProcessGUIUNIX.go +++ b/core/launchClipClearProcessGUIUNIX.go @@ -1,4 +1,4 @@ -//go:build !windows && !darwin && !android && !termux && !wsl && returnOnExit +//go:build !windows && !darwin && !android && !termux && !wsl && interactive package core diff --git a/wiki/developers.md b/wiki/developers.md index dd5f458..2617438 100644 --- a/wiki/developers.md +++ b/wiki/developers.md @@ -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)