getXmakeVersion function

Future<String> getXmakeVersion()

Implementation

Future<String> getXmakeVersion() async {
  final output = await getXmakeInfo();
  final versionMatch = RegExp(r'xmake\s+v([\d\.]+)').firstMatch(output);
  return versionMatch!.group(1)!;
}