phrase / phrase-cli

CLI for the Phrase API
https://developers.phrase.com
MIT License
42 stars 6 forks source link

`phrase keys create` does not print new key id to console #11

Closed codazzo closed 4 years ago

codazzo commented 4 years ago

After running phrase keys create, the CLI exits without printing anything to the console. This makes it difficult to use the command in a script if I want to first create a key, then e.g. add some translations to it.

Compare to the previous behaviour in phraseapp-cli (data randomized somewhat)

$ phraseapp key create myProjectId --name keyName

{"created_at":"2020-06-09T08:15:11Z","data_type":"string","description":"","id":"d413d36541cd0e026ecf142a54aac536","name":"testKey.pleaseDelete","name_hash":"9e94e4f528be321676a8b366dc571d1e","plural":false,"tags":[],"updated_at":"2020-06-09T08:15:11Z","comments_count":0,"creator":{"id":"18bb8c323f9524c0f17e7d65d816580b","name":"Some Name","username":"SomeName"},"format_value_type":"","max_characters_allowed":0,"name_plural":"","original_file":"","screenshot_url":"","unformatted":false,"xml_space_preserve":false}
rlisowski commented 4 years ago

@codazzo thanks for the report, it's already fixed in phrase/openapi@fa1545956b180c8515f57259a27dbe85fa9a930c, I will make a new release this week

rlisowski commented 4 years ago

@codazzo fixed in 2.0.4