Documentation
¶
Index ¶
- Constants
- func CreateStartupLink(_ context.Context) (bool, string, error)
- func DeleteStartupLink() (string, error)
- func Entry(msg, val string) (string, bool, error)
- func Error(msg string)
- func GetPNG() string
- func HasGUI() bool
- func HasStartupLink() (string, bool)
- func Info(msg string)
- func OpenCmd(ctx context.Context, cmd ...string) error
- func OpenFile(ctx context.Context, filePath string) error
- func OpenLog(ctx context.Context, logFile string) error
- func OpenURL(ctx context.Context, url string) error
- func Question(text string, defaultCancel bool) (bool, error)
- func StartCmd(ctx context.Context, command string, args ...string) error
- func Toast(_ context.Context, msg string, v ...any) error
- func Warning(msg string)
Constants ¶
View Source
const SystrayIcon = "notifiarr.png"
SystrayIcon is the icon in the system tray or task bar.
View Source
const ToastIcon = "notifiarr.png"
ToastIcon is the icon in the menu bar.
Variables ¶
This section is empty.
Functions ¶
func CreateStartupLink ¶ added in v0.8.1
func DeleteStartupLink ¶ added in v0.8.1
func GetPNG ¶ added in v0.8.1
func GetPNG() string
GetPNG purposely returns an empty string when there is no verified file. This is used to give the toast notification an icon. Do not throw errors if the icon is missing, it's nbd, just return empty "".
func HasStartupLink ¶ added in v0.8.1
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.