Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add raw formatter for direct []byte data
As mentioned in the previous commit, some API endpoints return non-JSON data. We get as far as fetching this data (via client.Logical().Read), but parsing it as an api.Secret fails (as in this case, it is non-JSON). Given that we intend to update `vault read` to support such endpoints, we'll need a "raw" formatter that accepts []byte-encoded data and simply writes it to the UI. Signed-off-by: Alexander Scheel <[email protected]>
- Loading branch information