Create a new New command with the given view name.
(name: impl Into<String>)
| 227 | impl New { |
| 228 | /// Create a new New command with the given view name. |
| 229 | pub fn with_name(name: impl Into<String>) -> Self { |
| 230 | Self { |
| 231 | name: Some(name.into()), |
| 232 | from: None, |
| 233 | empty: false, |
| 234 | switch: false, |
| 235 | draft: false, |
| 236 | parent: None, |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | /// Builder: set the source view to fork from. |
| 241 | pub fn with_from(mut self, from: impl Into<String>) -> Self { |
no outgoing calls
no test coverage detected