MCPcopy Create free account
hub / github.com/compozy/agh / writeVaultDeleteOutput

Function writeVaultDeleteOutput

internal/cli/vault.go:200–209  ·  view source on GitHub ↗
(cmd *cobra.Command, item vaultDeleteRecord)

Source from the content-addressed store, hash-verified

198}
199
200func 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
211func vaultRecordsBundle(items []VaultRecord, now func() time.Time) outputBundle {
212 return listBundle[VaultRecord](

Callers 1

newVaultDeleteCommandFunction · 0.85

Calls 4

resolveOutputFormatFunction · 0.85
writeJSONLineFunction · 0.85
writeCommandOutputFunction · 0.85
vaultDeleteBundleFunction · 0.85

Tested by

no test coverage detected