Skip to main content

memstead_program

Function memstead_program 

Source
pub fn memstead_program() -> String
Expand description

Resolve the running memstead binary to something the reader can actually type. Bare memstead when that name on PATH resolves to this very binary; otherwise the path we were invoked as.

A reader who ran ./target/debug/memstead, or an unpacked download, or a binary under a versioned directory, has no memstead on PATH — and every printed command naming a bare memstead fails for them with command not found. Every message that tells someone to run this binary goes through here.