18 references to FindFullPathFromPath
aspire (1)
src\Shared\PathLookupHelper.cs (1)
23
return
FindFullPathFromPath
(command, Environment.GetEnvironmentVariable("PATH"), Path.PathSeparator, File.Exists, pathExtensions);
Aspire.Cli.Tests (17)
Utils\PathLookupHelperTests.cs (17)
18
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", "/usr/bin:/usr/local/bin", ':', existingFiles.Contains, null);
31
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", "/usr/bin:/usr/local/bin", ':', AlwaysFalse, null);
44
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", "", ':', AlwaysFalse, null);
57
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", null, ':', AlwaysFalse, null);
74
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", "/first/path:/second/path", ':', existingFiles.Contains, null);
92
var result = PathLookupHelper.
FindFullPathFromPath
("mycommand", $"{dir};otherdir", ';', existingFiles.Contains, null);
111
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ';', existingFiles.Contains, pathExtensions);
132
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ';', existingFiles.Contains, pathExtensions);
156
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ';', existingFiles.Contains, pathExtensions);
175
var result = PathLookupHelper.
FindFullPathFromPath
("mytool", dir, ';', existingFiles.Contains, pathExtensions);
194
var result = PathLookupHelper.
FindFullPathFromPath
("code.CMD", dir, ';', existingFiles.Contains, pathExtensions);
209
var result = PathLookupHelper.
FindFullPathFromPath
("code.EXE", dir, ';', existingFiles.Contains, pathExtensions);
229
var result = PathLookupHelper.
FindFullPathFromPath
("code.EXE", dir, ';', existingFiles.Contains, pathExtensions);
246
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ':', existingFiles.Contains, null);
263
var result = PathLookupHelper.
FindFullPathFromPath
("code", dir, ':', existingFiles.Contains, []);
288
var result = PathLookupHelper.
FindFullPathFromPath
("code", $"{dir1};{dir2}", ';', existingFiles.Contains, pathExtensions);
312
var result = PathLookupHelper.
FindFullPathFromPath
("mytool", $"{dir1};{dir2}", ';', existingFiles.Contains, pathExtensions);