Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
output template: use text/template (#617)
# Description <!-- * Prefix: the title with the component name being changed. Add a short and self describing sentence to ease the review * Please add a few lines providing context and describing the change * Please self comment changes whenever applicable to help with the review process * Please keep the checklist as part of the PR. Tick what applies to this change. --> Previously we were using `html/template` which would result in strings being rendered as escaped html ## Checklist (For exoscale contributors) * [ ] Changelog updated (under *Unreleased* block) * [ ] Testing ## Testing <!-- Describe the tests you did --> Before: ``` ➜ exo dbaas show test --output-template '{{.Kafka.ConnectionInfo.AccessCert}}' 24-07-04 16:08 -----BEGIN CERTIFICATE----- MIIEVzCCAr+gAwIBAgIUCoWog7/IGKm3ts+xO6kSfkk/UHwwDQYJKoZIhvcNAQEM ... ``` W/ this PR: ``` ➜ go run . dbaas show test --output-template '{{.Kafka.ConnectionInfo.AccessCert}}' 24-07-04 16:57 -----BEGIN CERTIFICATE----- MIIEVzCCAr+gAwIBAgIUCoWog7/IGKm3ts+xO6kSfkk/UHwwDQYJKoZIhvcNAQEM ```
- Loading branch information