diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-05 15:16:26 -0800 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-05 15:29:23 -0800 |
commit | 2984a715b830410b6d6ce2a8aaa1fc8a2388ee99 (patch) | |
tree | 09dc00606931885e8b345791cd1a301335dd494c /args/args.go | |
parent | d86746bb0ddcb7dcfc6225f9fe37f6034c958913 (diff) | |
download | phoneof-2984a715b830410b6d6ce2a8aaa1fc8a2388ee99.tar.gz phoneof-2984a715b830410b6d6ce2a8aaa1fc8a2388ee99.zip |
add ntfy integration
Diffstat (limited to 'args/args.go')
-rw-r--r-- | args/args.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/args/args.go b/args/args.go index 458d36e..6c112c6 100644 --- a/args/args.go +++ b/args/args.go @@ -17,6 +17,9 @@ type Arguments struct { HttpSmsEndpoint string + NtfyEndpoint string + NtfyTopic string + Port int Server bool } @@ -60,6 +63,9 @@ func GetArgs() (*Arguments, error) { httpSmsEndpoint := flag.String("httpsms-endpoint", "https://httpsms.com", "HTTPSMS endpoint") + ntfyTopic := flag.String("ntfy-topic", "sms", "NTFY endpoint") + ntfyEndpoint := flag.String("ntfy-endpoint", "https://ntfy.simponic.hatecomputers.club", "HTTPSMS endpoint") + scheduler := flag.Bool("scheduler", false, "Run scheduled jobs via cron") migrate := flag.Bool("migrate", false, "Run the migrations") @@ -77,6 +83,8 @@ func GetArgs() (*Arguments, error) { Migrate: *migrate, Scheduler: *scheduler, HttpSmsEndpoint: *httpSmsEndpoint, + NtfyTopic: *ntfyTopic, + NtfyEndpoint: *ntfyEndpoint, } err := validateArgs(args) if err != nil { |