Create a new Revise command with default settings.
()
| 237 | impl Revise { |
| 238 | /// Create a new Revise command with default settings. |
| 239 | pub fn new() -> Self { |
| 240 | Self { |
| 241 | reference: "@".to_string(), |
| 242 | message: None, |
| 243 | reword: false, |
| 244 | no_edit: false, |
| 245 | author: None, |
| 246 | dry_run: false, |
| 247 | files: Vec::new(), |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | /// Builder: set the reference. |
| 252 | pub fn with_reference(mut self, reference: impl Into<String>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected