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

Method new

examples/block3.rs:40–42  ·  view source on GitHub ↗

Create a new `Cd` command.

(dir: PathBuf)

Source from the content-addressed store, hash-verified

38 impl Cd {
39 /// Create a new `Cd` command.
40 pub fn new(dir: PathBuf) -> Self {
41 Self { dir }
42 }
43
44 /// Run the `cd` command.
45 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected