hookHandler method
Get the VCSHooksHandler that match the current script configuration.
Implementation
VCSHooksHandler hookHandler(final OperatingSystem currentOs) {
switch (projectType) {
case dartProjectType:
return DartHooksHandler(os: currentOs, config: this);
case flutterProjectType:
return FlutterHooksHandler(os: currentOs, config: this);
default:
throw UnrecoverableException(
'Project type not supported\nPlease run setup tool',
ExitCode.config.code,
);
}
}