graphql-typed-client icon indicating copy to clipboard operation
graphql-typed-client copied to clipboard

Headers cli flag

Open bconnorwhite opened this issue 4 years ago • 3 comments

Added option to set headers through cli tool

bconnorwhite avatar Mar 24 '20 23:03 bconnorwhite

Can you add doc to readme? also would it be better to do -h 'Authorization: Bear abcd' instead. Better for commandline.

zhigang1992 avatar Apr 19 '20 10:04 zhigang1992

I forgot you can use the same flag multiple times with commander, I've adjusted this now to stack multiple headers: ... -H 'Authorization: Bearer abcd' -H 'Another: header'

Also added the header option to the README. I left the short flag as -H instead of -h though to avoid a collision with the -h help flag, but feel free to change this

bconnorwhite avatar Apr 20 '20 20:04 bconnorwhite

@helios1138 plz take a look. 😄

zhigang1992 avatar May 19 '20 06:05 zhigang1992