MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / current_dir

Method current_dir

crates/chat-cli/src/os/env.rs:129–135  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

127 }
128
129 pub fn current_dir(&self) -> Result<PathBuf, io::Error> {
130 use inner::Inner;
131 match &self.0 {
132 Inner::Real => std::env::current_dir(),
133 Inner::Fake(fake) => Ok(fake.lock().unwrap().cwd.clone()),
134 }
135 }
136
137 pub fn set_current_dir_for_test(&self, path: PathBuf) {
138 use inner::Inner;

Callers 15

newMethod · 0.80
expand_pathFunction · 0.80
run_hooksMethod · 0.80
process_pathFunction · 0.80
invokeMethod · 0.80
queue_descriptionMethod · 0.80
print_relative_pathMethod · 0.80
eval_permMethod · 0.80
validateMethod · 0.80
init_dirMethod · 0.80
id_to_pathFunction · 0.80
get_all_todosFunction · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected