ntfy/cmd/subscribe_unix.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
485 B
Go
Raw Normal View History

2022-09-01 09:49:08 +12:00
//go:build linux || dragonfly || freebsd || netbsd || openbsd
2022-09-01 08:26:43 +12:00
2022-05-10 08:22:52 +12:00
package cmd
const (
2022-05-10 13:25:00 +12:00
scriptExt = "sh"
scriptHeader = "#!/bin/sh\n"
clientCommandDescriptionSuffix = `The default config file for all client commands is /etc/ntfy/client.yml (if root user),
2022-05-10 08:22:52 +12:00
or ~/.config/ntfy/client.yml for all other users.`
)
2022-05-10 13:25:00 +12:00
var (
scriptLauncher = []string{"sh", "-c"}
)
2022-05-10 08:22:52 +12:00
func defaultClientConfigFile() (string, error) {
2022-06-02 08:57:35 +12:00
return defaultClientConfigFileUnix()
2022-05-10 08:22:52 +12:00
}