helperLink property

String? get helperLink

git-credential-tsm beside tsm, or null when tsm is not known.

Implementation

String? get helperLink {
  final tsm = tsmExecutable;
  if (tsm == null) return null;
  final cut = tsm.lastIndexOf(RegExp(r'[/\\]'));
  final dir = cut < 0 ? '.' : tsm.substring(0, cut);
  return '$dir$_sep${_windows ? 'git-credential-tsm.exe' : 'git-credential-tsm'}';
}