You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Command/DownloadCommand.php
+16-1Lines changed: 16 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,7 @@ protected function configure(): void
63
63
->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
64
64
->addOption('cache', null, InputOption::VALUE_NONE, '[DEPRECATED] Cache is now automatically cleared when translations have changed.')
65
65
->addOption('bundle', 'b', InputOption::VALUE_REQUIRED, 'The bundle you want update translations from.')
66
+
->addOption('export-config', 'exconf', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Options to send to the StorageInterface::export() function. Ie, when downloading. Example: --export-config foo:bar', [])
66
67
;
67
68
}
68
69
@@ -86,7 +87,8 @@ protected function execute(InputInterface $input, OutputInterface $output): int
@@ -40,7 +41,10 @@ protected function configure(): void
40
41
->setName(self::$defaultName)
41
42
->setDescription('Sync the translations with the remote storage')
42
43
->addArgument('configuration', InputArgument::OPTIONAL, 'The configuration to use', 'default')
43
-
->addArgument('direction', InputArgument::OPTIONAL, 'Use "down" if local changes should be overwritten, otherwise "up"', 'down');
44
+
->addArgument('direction', InputArgument::OPTIONAL, 'Use "down" if local changes should be overwritten, otherwise "up"', 'down')
45
+
->addOption('export-config', 'exconf', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Options to send to the StorageInterface::export() function. Ie, when downloading. Example: --export-config foo:bar', [])
46
+
->addOption('import-config', 'imconf', InputOption::VALUE_IS_ARRAY | InputOption::VALUE_OPTIONAL, 'Options to send to the StorageInterface::import() function. Ie, when uploading. Example: --import-config foo:bar', [])
47
+
;
44
48
}
45
49
46
50
protectedfunctionexecute(InputInterface$input, OutputInterface$output): int
@@ -60,8 +64,24 @@ protected function execute(InputInterface $input, OutputInterface $output): int
0 commit comments