captainhook icon indicating copy to clipboard operation
captainhook copied to clipboard

-echo?

Open analytically opened this issue 10 years ago • 4 comments

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

analytically avatar Jun 05 '14 15:06 analytically

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

thomasf avatar Dec 15 '14 11:12 thomasf

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

analytically avatar Dec 15 '14 13:12 analytically

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/

thomasf avatar Dec 15 '14 13:12 thomasf

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.

macropin avatar Dec 16 '15 22:12 macropin