Create a new prompt with the given name in the specified directory
(name: &str, base_dir: PathBuf)
| 91 | impl Prompt { |
| 92 | /// Create a new prompt with the given name in the specified directory |
| 93 | fn new(name: &str, base_dir: PathBuf) -> Self { |
| 94 | let path = base_dir.join(format!("{}.md", name)); |
| 95 | Self { |
| 96 | name: name.to_string(), |
| 97 | path, |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /// Check if the prompt file exists |
| 102 | fn exists(&self) -> bool { |
nothing calls this directly
no test coverage detected