phrase / phrase-cli

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

What's the difference between Phrase-CLI and Phrase-Ruby? #134

Closed wow-such-amazing closed 1 year ago

wow-such-amazing commented 1 year ago

Hey folks!

Could you please explain the difference between these repositories? Do they provide the same capabilities, but one is available via brew and another via gem?

Cheers!

jablan commented 1 year ago

The former is Ruby library for accessing Phrase Strings API. The latter is CLI tool (written in golang) for accessing Phrase Strings API.

wow-such-amazing commented 1 year ago

@jablan So basically both are doing the same thing? 🤔

jablan commented 1 year ago

@wow-such-amazing well, in the same way a bicycle and a train are doing the same thing. :)

both tools are accessing Phrase Strings API, but Ruby library is used if you have e.g. a Rails app that you wish to communicate with Phrase API, and CLI tool is used standalone, e.g. from bash scripts, github actions and so on. if you write here your use case, I can perhaps advise you on which one of our integrations would suit you the best.

wow-such-amazing commented 1 year ago

@jablan I see :D

In my case I noticed an inconsistency in our ios project setup. Basically I found that we have Phrase gem in Gemfile, but in reality it seems like we actually use Phrase via Brew both locally and when we run the build on Jenkins. So I think I will drop Phrase from Gemfile and will maybe introduce a Brewfile to control the version of Phrase 👀

jablan commented 1 year ago

Yeah, only having phrase in gemfile is not needed unless you are actually using it from ruby.