@tolgee/cli 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/pull.js +2 -4
- package/package.json +1 -1
package/dist/commands/pull.js
CHANGED
@@ -14,7 +14,7 @@ async function fetchZipBlob(opts) {
|
|
14
14
|
supportArrays: opts.supportArrays,
|
15
15
|
languages: opts.languages,
|
16
16
|
filterState: opts.states,
|
17
|
-
structureDelimiter: opts.delimiter,
|
17
|
+
structureDelimiter: opts.delimiter ?? '',
|
18
18
|
filterNamespace: opts.namespaces,
|
19
19
|
filterTagIn: opts.tags,
|
20
20
|
filterTagNotIn: opts.excludeTags,
|
@@ -43,9 +43,7 @@ export default (config) => new Command()
|
|
43
43
|
.choices(['UNTRANSLATED', 'TRANSLATED', 'REVIEWED'])
|
44
44
|
.default(config.pull?.states)
|
45
45
|
.argParser((v, a) => [v.toUpperCase(), ...(a || [])]))
|
46
|
-
.addOption(new Option('-d, --delimiter', 'Structure delimiter to use. By default, Tolgee interprets `.` as a nested structure. You can change the delimiter, or disable structure formatting by not specifying any value to the option')
|
47
|
-
.default(config.pull?.delimiter ?? '.')
|
48
|
-
.argParser((v) => v || ''))
|
46
|
+
.addOption(new Option('-d, --delimiter <delimiter>', 'Structure delimiter to use. By default, Tolgee interprets `.` as a nested structure. You can change the delimiter, or disable structure formatting by not specifying any value to the option').default(config.pull?.delimiter === undefined ? '.' : config.pull.delimiter))
|
49
47
|
.addOption(new Option('-n, --namespaces <namespaces...>', 'List of namespaces to pull. Defaults to all namespaces').default(config.pull?.namespaces))
|
50
48
|
.addOption(new Option('-t, --tags <tags...>', 'List of tags which to include. Keys tagged by at least one of these tags will be included.').default(config.pull?.tags))
|
51
49
|
.addOption(new Option('--exclude-tags <tags...>', 'List of tags which to exclude. Keys tagged by at least one of these tags will be excluded.').default(config.pull?.excludeTags))
|