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

Function open_editor_file

crates/chat-cli/src/cli/chat/cli/editor.rs:122–124  ·  view source on GitHub ↗

Opens the user's preferred editor to edit an existing file

(file_path: &std::path::Path)

Source from the content-addressed store, hash-verified

120
121/// Opens the user's preferred editor to edit an existing file
122pub fn open_editor_file(file_path: &std::path::Path) -> Result<(), ChatError> {
123 launch_editor(file_path)
124}
125
126/// Opens the user's preferred editor to compose a prompt
127pub fn open_editor(initial_text: Option<String>) -> Result<String, ChatError> {

Callers 2

execute_createMethod · 0.85
execute_editMethod · 0.85

Calls 1

launch_editorFunction · 0.70

Tested by

no test coverage detected