Skip to content

[brainstroming] Exit code from stat command to indicate translation health #128

@liborjelinek

Description

@liborjelinek

I am loudly thinking whether it wouldn't be helpful to return various exit codes from the sphinx-intl update command.

E.g., return 0 if everything is okay

$ sphinx-intl stat
source/locales/cs/LC_MESSAGES/index.po: 3 translated, 0 fuzzy, 0 untranslated.
source/locales/uk/LC_MESSAGES/index.po: 3 translated, 0 fuzzy, 0 untranslated.
$ echo $?
0

And non-zero when fuzzy or missing messages are found.

$ sphinx-intl stat
source/locales/cs/LC_MESSAGES/index.po: 2 translated, 0 fuzzy, 1 untranslated.
source/locales/uk/LC_MESSAGES/index.po: 3 translated, 0 fuzzy, 0 untranslated.

However, I am unsure which non-zero value 🤷‍♂️ to use, whether the number of problems or the missing/fuzzy %?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions