requireCommand method

  1. @override
void requireCommand(
  1. String command
)
override

Throws CommandNotFoundException if the provided command is not present in the $PATH

since 0.0.1

Implementation

@override
void requireCommand(String command) {
  _log.fine('Validating command exists: $command');
  _requireSingleCommand(command);
  if (!hasCommand(command)) {
    throw CommandNotFoundException(command);
  }
}