From c49288194e36e37c8bae13ed5dd292e781a577bb Mon Sep 17 00:00:00 2001 From: "ry.yamafuji" Date: Wed, 24 Dec 2025 20:48:51 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AA=E3=83=97=E3=82=B7=E3=83=A7=E3=83=B3?= =?UTF-8?q?=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/cli/cli.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/cli/cli.go b/internal/cli/cli.go index d702db4..cc30a9b 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -12,6 +12,8 @@ import ( type Options struct { ShowVersion bool + WebhookURL string + TimeoutSec int } func Run(args []string) int { @@ -26,6 +28,10 @@ func run(args []string, stdin io.Reader, stdout, stderr io.Writer) int { var opt Options fs.BoolVar(&opt.ShowVersion, "version", false, "show version") fs.BoolVar(&opt.ShowVersion, "V", false, "show version (short)") + // other options + fs.StringVar(&opt.WebhookURL, "webhook", "", "Slack Incoming Webhook URL (or env SLACK_WEBHOOK_URL)") + fs.IntVar(&opt.TimeoutSec, "timeout", 10, "HTTP timeout seconds") + if err := fs.Parse(args[1:]); err != nil { if err == flag.ErrHelp {