Files
btool/lib/utils.dart
2022-12-07 23:01:23 +02:00

22 lines
501 B
Dart

import 'package:file/file.dart';
class _BToolBaseException implements Exception {
final String message;
_BToolBaseException(this.message);
@override
String toString() => message;
}
class BToolException extends _BToolBaseException {
BToolException(super.message);
}
class BToolOptionsException extends _BToolBaseException {
BToolOptionsException(super.message);
}
Directory getCurrentDir(Directory? workingDir, {required FileSystem fs}) {
return workingDir ?? fs.currentDirectory;
}