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

Method exists

crates/chat-cli/src/cli/chat/cli/prompts.rs:102–104  ·  view source on GitHub ↗

Check if the prompt file exists

(&self)

Source from the content-addressed store, hash-verified

100
101 /// Check if the prompt file exists
102 fn exists(&self) -> bool {
103 self.path.exists()
104 }
105
106 /// Load the content of the prompt file
107 fn load_content(&self) -> Result<String, GetPromptError> {

Callers 15

executeMethod · 0.45
ensure_config_fileFunction · 0.45
load_cfgFunction · 0.45
cleanupMethod · 0.45
process_pathFunction · 0.45
load_agent_executionFunction · 0.45
invokeMethod · 0.45
queue_descriptionMethod · 0.45
validateMethod · 0.45
validateMethod · 0.45

Calls

no outgoing calls

Tested by 1