MCPcopy Create free account
hub / github.com/elastio/devx / current_dir

Method current_dir

devx-cmd/src/lib.rs:300–303  ·  view source on GitHub ↗

Set the current directory for the child process. Inherits this process current dir by default.

(&mut self, dir: impl Into<PathBuf>)

Source from the content-addressed store, hash-verified

298 ///
299 /// Inherits this process current dir by default.
300 pub fn current_dir(&mut self, dir: impl Into<PathBuf>) -> &mut Self {
301 self.as_mut().current_dir = Some(dir.into());
302 self
303 }
304
305 /// Returns the currently configured current process directory path
306 pub fn get_current_dir(&self) -> Option<&Path> {

Callers 2

from_git_diffMethod · 0.80
spawn_withMethod · 0.80

Calls 1

as_mutMethod · 0.80

Tested by

no test coverage detected