(cmd *cobra.Command, item vaultDeleteRecord)
| 198 | } |
| 199 | |
| 200 | func writeVaultDeleteOutput(cmd *cobra.Command, item vaultDeleteRecord) error { |
| 201 | mode, err := resolveOutputFormat(cmd) |
| 202 | if err != nil { |
| 203 | return err |
| 204 | } |
| 205 | if mode == OutputJSONL { |
| 206 | return writeJSONLine(cmd, item) |
| 207 | } |
| 208 | return writeCommandOutput(cmd, vaultDeleteBundle(item)) |
| 209 | } |
| 210 | |
| 211 | func vaultRecordsBundle(items []VaultRecord, now func() time.Time) outputBundle { |
| 212 | return listBundle[VaultRecord]( |
no test coverage detected