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

Method collect_context_files

crates/chat-cli/src/cli/chat/context.rs:230–241  ·  view source on GitHub ↗
(
        &self,
        os: &Os,
        paths: &[ContextFilePath],
        context_files: &mut Vec<(String, String)>,
    )

Source from the content-addressed store, hash-verified

228 }
229
230 async fn collect_context_files(
231 &self,
232 os: &Os,
233 paths: &[ContextFilePath],
234 context_files: &mut Vec<(String, String)>,
235 ) -> Result<()> {
236 for path in paths {
237 // Use is_validation=false to handle non-matching globs gracefully
238 process_path(os, path.get_path_as_str(), context_files, false).await?;
239 }
240 Ok(())
241 }
242
243 /// Run all the currently enabled hooks from both the global and profile contexts.
244 /// # Returns

Callers 1

get_context_filesMethod · 0.80

Calls 2

process_pathFunction · 0.85
get_path_as_strMethod · 0.80

Tested by

no test coverage detected