readme.md in web_translate_it-2.4.1 vs readme.md in web_translate_it-2.4.2

- old
+ new

@@ -160,10 +160,14 @@ <tr> <td>wti pull --all</td> <td>Download all language files, including source</td> </tr> <tr> + <td>wti pull path/to/files/*</td> + <td>Download all files in path/to/files</td> + </tr> + <tr> <td>wti pull --force</td> <td>Force pull (to bypass WebTranslateIt’s HTTP caching)</td> </tr> <tr> <td>wti addlocale fr</td> @@ -210,22 +214,51 @@ config/locales/js/fr.yml | 2f8bb0e..2f8bb0e Skipped config/locales/translation_validator/fr.yml | 534af2c..534af2c Skipped config/locales/app/fr.yml | 29f8c9d..da39a3e OK config/locales/defaults/fr.yml | aca123e..aca123e Skipped Pulled 8 files at 7 files/sec, using 3 threads. + ~/code/webtranslateit.com[master]% echo $? 0 + ~/code/webtranslateit.com[master]% wti pull # Pulling files on WebTranslateIt config/locales/translation_validator/en.yml | e82e044..e82e044 Error config/locales/app/en.yml | f2ca86c..f2ca86c Skipped config/locales/defaults/fr.yml | aca123e..aca123e Skipped Pulled 3 files at 3 files/sec, using 3 threads. + ~/code/webtranslateit.com[master]% echo $? 1 ``` -Since version 2.4.1 the `wti status` command also returns meaningfull codes. It will exit with `0` if the project is 100% translated and proofread, `100` if the project is not 100% translated and `101` if the project is not 100% proofread. This allows you to check if a project is 100% translated or completed before deploying a project, for instance. +Since version 2.4.1 the `wti status` command also returns meaningful codes. It will exit with `0` if the project is 100% translated and proofread, `100` if the project is not 100% translated and `101` if the project is not 100% proofread. This could allow you to check if a project is 100% translated or completed before deploying a project. +``` zsh +~/Desktop/test% wti status +# Gathering information on test ts +fr: 40% translated, 40% completed. +en: 90% translated, 0% completed. + +~/Desktop/test% echo $? +100 + +~/Desktop/test% wti status +# Gathering information on test ts +en: 100% translated, 0% completed. +fr: 100% translated, 100% completed. + +~/Desktop/test% echo $? +101 + +~/Desktop/test% wti status +# Gathering information on test ts +en: 100% translated, 100% completed. +fr: 100% translated, 100% completed. + +~/Desktop/test% echo $? +0 +``` + # License -Copyright (c) 2009-2015 Atelier Convivialité, released under the MIT License. +Copyright (c) 2009-2016 Atelier Convivialité, released under the MIT License.