Skip to content

Commit

Permalink
Cli schema update (#826)
Browse files Browse the repository at this point in the history
This is an automated daily update.

Co-authored-by: Tolgee Machine <[email protected]>
  • Loading branch information
github-actions[bot] and TolgeeMachine authored Feb 6, 2025
1 parent 4273139 commit 25a8649
Showing 1 changed file with 88 additions and 1 deletion.
89 changes: 88 additions & 1 deletion static/cli-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"description": "The url of Tolgee API.",
"type": "string"
},
"apiKey": {
"description": "Api key to Tolgee Platform.\n\nWARNING: Make sure you don't leak your API key\nUse `apiKey` only if you are loading it from an environment or other secured source (supported in .js or .yml files) or your config is not public.\n\nIn most cases, it's better to use a one-time `login` command or set it via the `TOLGEE_API_KEY` environment variable.",
"type": "string"
},
"format": {
"$ref": "#/$defs/format"
},
Expand Down Expand Up @@ -84,6 +88,10 @@
"items": {
"type": "string"
}
},
"removeOtherKeys": {
"description": "Remove keys which are not present in the import.",
"type": "boolean"
}
}
},
Expand Down Expand Up @@ -153,6 +161,78 @@
]
}
}
},
"sync": {
"type": "object",
"properties": {
"backup": {
"description": "Store translation files backup (only translation files, not states, comments, tags, etc.). If something goes wrong, the backup can be used to restore the project to its previous state.",
"type": "string"
},
"continueOnWarning": {
"description": "Continue the sync regardless of whether warnings are detected during string extraction. By default, as warnings may indicate an invalid extraction, the CLI will abort the sync.",
"type": "boolean"
},
"removeUnused": {
"description": "Delete unused keys from the Tolgee project",
"type": "boolean"
}
}
},
"tag": {
"type": "object",
"properties": {
"filterExtracted": {
"description": "Extract keys from code and filter by it.",
"type": "boolean"
},
"filterNotExtracted": {
"description": "Extract keys from code and filter them out.",
"type": "boolean"
},
"filterTag": {
"description": "Filter only keys with tag. Use * as a wildcard.",
"type": "array",
"items": {
"type": "string"
}
},
"filterNoTag": {
"description": "Filter only keys without tag. Use * as a wildcard.",
"type": "array",
"items": {
"type": "string"
}
},
"tag": {
"description": "Add tag to filtered keys.",
"type": "array",
"items": {
"type": "string"
}
},
"tagOther": {
"description": "Tag keys which are not filtered.",
"type": "array",
"items": {
"type": "string"
}
},
"untag": {
"description": "Remove tag from filtered keys. Use * as a wildcard.",
"type": "array",
"items": {
"type": "string"
}
},
"untagOther": {
"description": "Remove tag from keys which are not filtered. Use * as a wildcard.",
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"$defs": {
Expand Down Expand Up @@ -202,11 +282,13 @@
"PO_JAVA",
"PO_ICU",
"PO_RUBY",
"PO_PYTHON",
"APPLE_STRINGS",
"APPLE_XLIFF",
"PROPERTIES_ICU",
"PROPERTIES_JAVA",
"ANDROID_XML",
"COMPOSE_XML",
"FLUTTER_ARB",
"CSV_ICU",
"CSV_JAVA",
Expand All @@ -219,7 +301,12 @@
"XLIFF_ICU",
"XLIFF_JAVA",
"XLIFF_PHP",
"XLIFF_RUBY"
"XLIFF_RUBY",
"RESX_ICU",
"XLSX_ICU",
"XLSX_JAVA",
"XLSX_PHP",
"XLSX_RUBY"
]
}
}
Expand Down

0 comments on commit 25a8649

Please sign in to comment.