Show an intent's full content.
(&self, intent_id: &str)
| 510 | |
| 511 | /// Show an intent's full content. |
| 512 | pub fn vault_intent_show(&self, intent_id: &str) -> Result<VaultEntry, RepositoryError> { |
| 513 | let full_id = self.normalize_intent_id(intent_id)?; |
| 514 | let intent_file = |
| 515 | self.find_intent_path(&full_id)? |
| 516 | .ok_or_else(|| RepositoryError::InvalidOperation { |
| 517 | message: format!("Intent '{}' not found", full_id), |
| 518 | })?; |
| 519 | |
| 520 | self.vault_retrieve(&intent_file)? |
| 521 | .ok_or_else(|| RepositoryError::InvalidOperation { |
| 522 | message: format!("Intent '{}' not found", full_id), |
| 523 | }) |
| 524 | } |
| 525 | |
| 526 | /// Resolve an Intent display ID to its current Vault path. |
| 527 | /// |