MCPcopy Create free account
hub / github.com/corrode/write-yourself-a-shell / new

Method new

examples/block5.rs:35–37  ·  view source on GitHub ↗

Create a new `Cd` command.

(dir: PathBuf)

Source from the content-addressed store, hash-verified

33 impl Cd {
34 /// Create a new `Cd` command.
35 pub fn new(dir: PathBuf) -> Self {
36 Self { dir }
37 }
38
39 /// Run the `cd` command.
40 pub fn run(self) -> Result<Option<Output>> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected