buildCommand method

  1. @override
String buildCommand()
override

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

Implementation

@override
String buildCommand() {
  var command = 'config:';
  command += '$configType:';
  if (operation == 'show') {
    command += operation!;
  } else {
    command += '$operation:';
  }
  if (atSigns != null && atSigns!.isNotEmpty) {
    atSigns!
        .forEach((atSign) => command += '${VerbUtil.formatAtSign(atSign)}');
  }
  command = command.trim();
  command = command + '\n';
  return command;
}