Delete the prompt file
(&self)
| 119 | |
| 120 | /// Delete the prompt file |
| 121 | fn delete(&self) -> Result<(), GetPromptError> { |
| 122 | fs::remove_file(&self.path).map_err(GetPromptError::Io) |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /// Represents both local and global prompts for a given name |