Create a new Record command with default settings.
()
| 3 | impl Record { |
| 4 | /// Create a new Record command with default settings. |
| 5 | pub fn new() -> Self { |
| 6 | Self { |
| 7 | message: None, |
| 8 | all: false, |
| 9 | files: Vec::new(), |
| 10 | author: None, |
| 11 | identity: None, |
| 12 | usage: None, |
| 13 | edit: false, |
| 14 | algorithm: "myers".to_string(), |
| 15 | dry_run: false, |
| 16 | skip_binary: false, |
| 17 | allow_conflict_markers: false, |
| 18 | resolve_name_conflicts: Vec::new(), |
| 19 | max_size: None, |
| 20 | ai_assisted: false, |
| 21 | ai_provider: None, |
| 22 | ai_model: None, |
| 23 | ai_tool: None, |
| 24 | ai_suggestion_type: None, |
| 25 | ai_input_tokens: None, |
| 26 | ai_output_tokens: None, |
| 27 | ai_cost_usd: None, |
| 28 | ai_request_id: None, |
| 29 | ai_session_id: None, |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | /// Parse the algorithm string into an Algorithm enum. |
| 34 | pub(super) fn parse_algorithm(&self) -> CliResult<Algorithm> { |
nothing calls this directly
no outgoing calls
no test coverage detected