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

Method path

crates/chat-cli/src/cli/chat/tools/fs_write.rs:91–98  ·  view source on GitHub ↗
(&self, os: &Os)

Source from the content-addressed store, hash-verified

89
90impl FsWrite {
91 pub fn path(&self, os: &Os) -> PathBuf {
92 sanitize_path_tool_arg(os, match self {
93 FsWrite::Create { path, .. } => path.as_str(),
94 FsWrite::StrReplace { path, .. } => path.as_str(),
95 FsWrite::Insert { path, .. } => path.as_str(),
96 FsWrite::Append { path, .. } => path.as_str(),
97 })
98 }
99
100 pub async fn invoke(
101 &self,

Callers 15

test_loggingFunction · 0.45
callMethod · 0.45
create_newMethod · 0.45
create_dirMethod · 0.45
create_dir_allMethod · 0.45
openMethod · 0.45
readMethod · 0.45
read_to_stringMethod · 0.45
read_to_string_syncMethod · 0.45
writeMethod · 0.45
remove_fileMethod · 0.45
remove_dir_allMethod · 0.45

Calls 2

sanitize_path_tool_argFunction · 0.85
as_strMethod · 0.45