Gofmt
This commit is contained in:
@ -42,9 +42,9 @@ func Send(title, text string, critical, sound bool) error {
|
||||
if sound {
|
||||
args = append(args, "-sound", "default")
|
||||
}
|
||||
// if len(iconPath) > 0 {
|
||||
// args = append(args, "-appIcon", iconPath)
|
||||
// }
|
||||
// if len(iconPath) > 0 {
|
||||
// args = append(args, "-appIcon", iconPath)
|
||||
// }
|
||||
return exec.Command("terminal-notifier", args...).Run()
|
||||
}
|
||||
title = strings.Replace(title, `"`, `\"`, -1)
|
||||
|
@ -23,9 +23,9 @@ func Send(title, text string, critical, sound bool) error {
|
||||
if critical {
|
||||
args = append(args, "-u", "critical")
|
||||
}
|
||||
// if iconPath {
|
||||
// args = append(args, "-i", iconPath)
|
||||
// }
|
||||
// if iconPath {
|
||||
// args = append(args, "-i", iconPath)
|
||||
// }
|
||||
args = append(args, title, text)
|
||||
if sound {
|
||||
soundName := "message-new-instant"
|
||||
|
@ -25,7 +25,7 @@ func Send(title, text string, critical, sound bool) error {
|
||||
Message: message,
|
||||
Audio: toast.Silent,
|
||||
Duration: toast.Short,
|
||||
// Icon: ...,
|
||||
// Icon: ...,
|
||||
}
|
||||
if sound {
|
||||
notification.Audio = toast.IM
|
||||
|
Reference in New Issue
Block a user