silk.system.executable.

Resolves a program name against the process search path without starting it.

Import as Executable with import silk.system.executable as Executable.

Public declarations: 2.

findBytes#

silk
pub effect fn findBytes(written: &[u8]) -> Option<Path> ! HostInputError | OutOfMemoryError ? &mut HostInput | &mut Allocator | &mut FileSystem

Resolves a program spelled as host bytes. A path names the program directly; a name searches PATH, with an additional .exe candidate on Windows. Missing programs return None.

find#

silk
pub effect fn find(written: string) -> Option<Path> ! HostInputError | OutOfMemoryError ? &mut HostInput | &mut Allocator | &mut FileSystem

Resolves a program name or path without starting it. Relative paths use the working directory.

Profiles: aarch64-apple-darwin, aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu-no-libc, x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu-no-libc, wasm32-unknown-unknown, wasm32-wasip1, wasm32-wasip2, x86_64-pc-windows-msvc, wasm64-unknown-unknown.

View the source of this page