go-toast

Send toast notifications in Windows
Log | Files | Refs | README | LICENSE

commit 5b500ee64deb0af6ed41fb037398bf6f9c00c8e6
parent 2fb0180c4771388cb0976302e365074fdb4dbecc
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date:   Tue, 21 Mar 2023 16:27:38 +0800

examples/toast-cli: add activation exe to flag set

Allows setting the activation executable path in the example.

Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>

Diffstat:
Mexamples/toast-cli/main.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/examples/toast-cli/main.go b/examples/toast-cli/main.go @@ -21,6 +21,7 @@ func main() { flag.StringVar(&n.ActivationType, "activation-type", toast.Background, "Activation Type [protocol, foreground, background]") flag.StringVar(&n.ActivationArguments, "activation-args", "", "Activation Arguments") flag.StringVar(&n.Audio, "audio", "", "Audio to play when displaying the toast") + flag.StringVar(&n.ActivationExe, "activation-exe", "", "path to activation executable") flag.BoolVar(&n.Loop, "loop", false, "Loop audio") flag.StringVar(&n.Duration, "duration", "short", "Audio duration")