rmnl / clack

Clack is a Command Line API Calling Kit for JW Player API's based on Click
MIT License
7 stars 2 forks source link

Clack 2.0.0b9 : output format always py #13

Open mirfilip opened 6 years ago

mirfilip commented 6 years ago
$ clack --version
Clack-2.0.0b9
$ clack call -e my_env /videos/list '{"limit": 1}'
Call settings:

api type      : ms1
api host      : https://api.jwplatform.com
verify ssl    : True
endpoint      : videos/list
params        : {"limit": 1}
key/username  : key
secret        : ********
output format : py

$ clack call --output json -e my_env /videos/list '{"limit": 1}'
Call settings:

api type      : ms1
api host      : https://api.jwplatform.com
verify ssl    : True
endpoint      : videos/list
params        : {"limit": 1}
key/username  : key
secret        : ********
output format : py

$ clack call -o json -e my_env /videos/list '{"limit": 1}'
Call settings:

api type      : ms1
api host      : https://api.jwplatform.com
verify ssl    : True
endpoint      : videos/list
params        : {"limit": 1}
key/username  : key
secret        : ********
output format : py

I cut the actual response from the listing, but it's indeed py. Same works for 1.x.x

mirfilip commented 6 years ago

Also, readme says env var to change this is CLACK_OUTPUT but it's actually FORMAT. Doesn't work either.