tryInstallCompletionFiles method

  1. @internal
void tryInstallCompletionFiles(
  1. Level level, {
  2. bool force = false,
})

Tries to install completion files for the current shell.

Implementation

@internal
void tryInstallCompletionFiles(Level level, {bool force = false}) {
  try {
    completionInstallationLogger.level = level;
    completionInstallation.install(executableName, force: force);
  } on CompletionInstallationException catch (e) {
    completionInstallationLogger.warn(e.toString());
  } on Exception catch (e) {
    completionInstallationLogger.err(e.toString());
  }
}