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

Method new

examples/block4.rs:37–39  ·  view source on GitHub ↗

Create a new `Cd` command.

(dir: PathBuf)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected