Migrate translations_develop script (#33933)
* Migrate translations_develop script * Fix lint
This commit is contained in:
1 parent
294a2d2460
commit
8e6e8dfbe0
6 files changed
+76
-68
No files matched your search
@@ -1,4 +1,5 @@
|
||||
"""Translation utils."""
|
||||
import argparse
|
||||
import os
|
||||
import pathlib
|
||||
import subprocess
|
||||
@@ -6,6 +7,16 @@ import subprocess
|
||||
from .error import ExitApp
|
||||
|
||||
|
||||
def get_base_arg_parser():
|
||||
"""Get a base argument parser."""
|
||||
parser = argparse.ArgumentParser(description="Home Assistant Translations")
|
||||
parser.add_argument(
|
||||
"action", type=str, choices=["download", "clean", "upload", "develop"]
|
||||
)
|
||||
parser.add_argument("--debug", action="store_true", help="Enable log output")
|
||||
return parser
|
||||
|
||||
|
||||
def get_lokalise_token():
|
||||
"""Get lokalise token."""
|
||||
token = os.environ.get("LOKALISE_TOKEN")
|
||||
|
||||
Reference in new issue
Block a user