bketelsen / captainhook

A generic webhook endpoint that runs scripts based on the URL called
MIT License
319 stars 36 forks source link

-echo? #6

Open analytically opened 10 years ago

analytically commented 10 years ago

Is it -echo true/false? Or just -echo to enable it?

thomasf commented 9 years ago

It's false by default, -echo or -echo=true enables it. I guess that you might already have figured this out :)

analytically commented 9 years ago

Yeah thanks! But it'd be nice if it's better documented...

thomasf commented 9 years ago

It is using the standard go flag package so it's behaving like most go command line apps with arguments.

If you want to understand it these are the captainhook flags: https://github.com/bketelsen/captainhook/blob/master/main.go#L17

And this is how flags work: http://golang.org/pkg/flag/

macropin commented 8 years ago

I think echo should be on by default. I was surprised when the webhooks returned 200 ok and no result. My expectation was that the payload would include the command output.