buildCommand method

  1. @override
String buildCommand()
override

Build the @ command to be sent to remote secondary for execution.

Implementation

@override
String buildCommand() {
  var scanCommand = 'scan';
  if (sharedBy != null) {
    scanCommand += ':${VerbUtil.formatAtSign(sharedBy)}';
  }
  if (regex != null) {
    scanCommand += ' $regex';
  }
  scanCommand += '\n';
  return scanCommand;
}