Read an intent by ID from the vault and return its lift inputs. `vault_intent_show` normalizes the ID (`"PIMO-1"` / `"pimo-1"` / `"1"`) and resolves the stored entry.
(repo: &Repository, id: &str)
| 73 | /// `vault_intent_show` normalizes the ID (`"PIMO-1"` / `"pimo-1"` / `"1"`) and |
| 74 | /// resolves the stored entry. |
| 75 | pub fn read_intent(repo: &Repository, id: &str) -> CliResult<LiftInputs> { |
| 76 | let entry = repo.vault_intent_show(id).map_err(CliError::Repository)?; |
| 77 | inputs_from_entry(&entry) |
| 78 | } |
| 79 | |
| 80 | /// Lift the given inputs into a canonical node, mapping a lift failure (unknown |
| 81 | /// directive, missing `id`, malformed `:::ref`, …) to a clean argument error so |