inputPath property

String get inputPath

Implementation

String get inputPath {
  final direct = _getOption('input-path');
  if (direct != null && direct.isNotEmpty) {
    final home = Platform.environment['HOME'] ??
        Platform.environment['USERPROFILE'];
    if (home != null) {
      return direct.replaceFirst(RegExp(r'^~'), home);
    }
    return direct;
  }
  return Directory.current.path;
}