~bfiedler/go-threema

bb62b75c1a842a28507a18394bd9bbc826394449 — Ben Fiedler 3 years ago e49e450
am-hook: Add version indicator
1 files changed, 4 insertions(+), 0 deletions(-)

M cmd/am-hook/main.go
M cmd/am-hook/main.go => cmd/am-hook/main.go +4 -0
@@ 34,9 34,13 @@ var (
	recipientID = pflag.String("recipient-id", os.Getenv("THREEMA_CLI_RECIPIENT_ID"), "Threema ID send messages to, required. Can also be set using the environment variable THREEMA_CLI_RECIPIENT_ID")

	alertRate = rate.Every(24 * time.Hour / 4) // Refill four tokens per day

	Commit = "unknown"
)

func main() {
	fmt.Printf("Starting am-hook (commit %s)\n", Commit)

	pflag.Parse()
	checkFlags()