(&self)
| 48 | |
| 49 | impl Command for Materialize { |
| 50 | fn run(&self) -> CliResult<()> { |
| 51 | let root = find_repository_root()?; |
| 52 | let repo = Repository::open(&root).map_err(CliError::Repository)?; |
| 53 | |
| 54 | if let Some(ref path) = self.path { |
| 55 | repo.vault_materialize(path).map_err(CliError::Repository)?; |
| 56 | println!("Materialized: {}", path); |
| 57 | } else { |
| 58 | let count = repo.vault_materialize_all().map_err(CliError::Repository)?; |
| 59 | println!("Materialized {} vault entries.", count); |
| 60 | } |
| 61 | |
| 62 | Ok(()) |
| 63 | } |
| 64 | } |
nothing calls this directly
no test coverage detected