Sign inSign up

ludeeus/webhook

By ludeeus

•Updated about 6 years ago

V powered CLI Webhook notifier

Image
0

10K+

ludeeus/webhook repository overview

⁠Webhook notifier

V⁠ powered CLI Webhook notifier

⁠Purpose

  • Try out something with V⁠
  • Get a small binary I can use in github actions in other projects

⁠Installation

git clone https://github.com/ludeeus/webhook
v -prod . -o webhook-notifier
./webhook-notifier

⁠Usage

Usage: Webhook notifier [FLAGS] [COMMANDS]

V powered CLI Webhook notifier

Flags:
  -h  --help          Prints help information
  -v  --version       Prints version information

Commands:
  help                Prints help information
  send                Send a message to a target with a webhook
  version             Prints version information

⁠Supported targets

  • Generic (default)
  • Discord
  • Microsoft Teams

Note: if using the generic target you need to provide the data as an escaped JSON string with the --data flag

⁠Docker

This is also available as a minimalistic docker container (> 4MB) ludeeus/webhook ⁠

To get started just run:

docker run ludeeus/webhook

Full example:

docker run ludeeus/webhook send --target discord --url "https://discordapp.com/api/webhooks/xxxxxxxxxxxx/xxxxxxxxxxxxxxxxxxxxx" --message "Test message with webhook notifier" --title "Powered by V"

⁠License

Licensed under MIT⁠

⁠Contributing

Contribution is welcome. Please read Code of Conduct⁠.

Tag summary

Content type

Image

Digest

Size

1.2 MB

Last updated

about 6 years ago

docker pull ludeeus/webhook