transifex / transifex-client

The Transifex command-line tool.
https://www.transifex.com/
GNU General Public License v2.0
135 stars 75 forks source link

Feature request: `tx login` #331

Open beck opened 2 years ago

beck commented 2 years ago

because we already have the config set up but onboarding new engineers need a .transifexrc.

As is, our local dev instructions are:

Looking at the source, I don't see any way to just call .getset_host_credentials

tx init --skipsetup looked promising but then it prompts you with:

It seems that this project is already initialized. Do you want to delete it and reinit the project? [Y/n]:

transifexGithub commented 2 years ago

Hello Beck,

Thank you for reaching out to Transifex support. Regarding your query, I assume you will like to set up a new project without deleting the current one, Is this correct? If it is, Perhaps the following approach will work for you:

  1. Create a virtual environment (python3 -m venv /Users/Cesar/VirtualEnv)
  2. Create a test project in Transifex
  3. Place yourself in /Users/Cesar/VirtualEnv
  4. Execute "tx init or tx config"
  5. Follow the instructions

Let me know if this answers your question Best Regards Cesar

beck commented 2 years ago

set up a new project without deleting the current one

Not quite.

I want to login, in other words only create the file ~/.transifexrc (without mutating anything else)