`atomic vault materialize` over ExportVault — the handler inflates the vault entries to markdown in the working copy (the same domain calls), and the CLI prints the local report.
(args: &super::vault::materialize::Materialize)
| 6583 | /// vault entries to markdown in the working copy (the same domain calls), |
| 6584 | /// and the CLI prints the local report. |
| 6585 | pub fn vault_materialize(args: &super::vault::materialize::Materialize) -> CliResult<bool> { |
| 6586 | let Some(session) = Service::open()? else { |
| 6587 | return Ok(false); |
| 6588 | }; |
| 6589 | let request = pb::ExportVaultRequest { |
| 6590 | repository: Some(session.reference.clone()), |
| 6591 | meta: request_meta(), |
| 6592 | kinds: Vec::new(), |
| 6593 | destination: None, |
| 6594 | path: args.path.clone(), |
| 6595 | view: None, |
| 6596 | }; |
| 6597 | let response = session.export_vault(request)?; |
| 6598 | match &response.materialized_path { |
| 6599 | Some(path) => println!("Materialized: {}", path), |
| 6600 | None => println!("Materialized {} vault entries.", response.exported), |
| 6601 | } |
| 6602 | Ok(true) |
| 6603 | } |
| 6604 | |
| 6605 | /// `atomic vault summaries` over ListVaultEntries with the previews arm — |
| 6606 | /// the handler enumerates the ToolResult entries under the goal prefix |
no test coverage detected