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

Function writeVaultRecordsOutput

internal/cli/vault.go:173–187  ·  view source on GitHub ↗
(cmd *cobra.Command, items []VaultRecord, now func() time.Time)

Source from the content-addressed store, hash-verified

171}
172
173func writeVaultRecordsOutput(cmd *cobra.Command, items []VaultRecord, now func() time.Time) error {
174 mode, err := resolveOutputFormat(cmd)
175 if err != nil {
176 return err
177 }
178 if mode == OutputJSONL {
179 for _, item := range items {
180 if err := writeJSONLine(cmd, item); err != nil {
181 return err
182 }
183 }
184 return nil
185 }
186 return writeCommandOutput(cmd, vaultRecordsBundle(items, now))
187}
188
189func writeVaultRecordOutput(cmd *cobra.Command, item VaultRecord) error {
190 mode, err := resolveOutputFormat(cmd)

Callers 1

newVaultListCommandFunction · 0.85

Calls 4

resolveOutputFormatFunction · 0.85
writeJSONLineFunction · 0.85
writeCommandOutputFunction · 0.85
vaultRecordsBundleFunction · 0.85

Tested by

no test coverage detected