public function SalesforcePullCommands::interactPullFile in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_pull/src/Commands/SalesforcePullCommands.php \Drupal\salesforce_pull\Commands\SalesforcePullCommands::interactPullFile()
- 5.0.x modules/salesforce_pull/src/Commands/SalesforcePullCommands.php \Drupal\salesforce_pull\Commands\SalesforcePullCommands::interactPullFile()
Fetch a filename interactively.
@hook interact salesforce_pull:pull-file
File
- modules/
salesforce_pull/ src/ Commands/ SalesforcePullCommands.php, line 84
Class
- SalesforcePullCommands
- A Drush commandfile.
Namespace
Drupal\salesforce_pull\CommandsCode
public function interactPullFile(Input $input, Output $output) {
$file = $input
->getArgument('file');
if (empty($file)) {
return;
}
if (!file_exists($file)) {
$this
->logger()
->error('File does not exist');
return;
}
return $this
->interactPullMappings($input, $output);
}