You are here

public function SalesforcePullCommands::interactPullFile in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_pull/src/Commands/SalesforcePullCommands.php \Drupal\salesforce_pull\Commands\SalesforcePullCommands::interactPullFile()
  2. 8.3 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\Commands

Code

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);
}