Opens the user's preferred editor to edit an existing file
(file_path: &std::path::Path)
| 120 | |
| 121 | /// Opens the user's preferred editor to edit an existing file |
| 122 | pub 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 |
| 127 | pub fn open_editor(initial_text: Option<String>) -> Result<String, ChatError> { |
no test coverage detected