Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keys command should have more output formats #8

Open
dmolesUC opened this issue Feb 1, 2019 · 0 comments
Open

keys command should have more output formats #8

dmolesUC opened this issue Feb 1, 2019 · 0 comments

Comments

@dmolesUC
Copy link
Owner

dmolesUC commented Feb 1, 2019

Currently the keys command outputs only either raw keys or quoted Go string literals. The first is problematic for keys with newlines or control characters; the second is Go-specific and somewhat confusing for anything involving a backslash; and also still exposes some sequences that can be problematic for viewing in a terminal, such as ANSI color escapes.

Offering strconv.QuoteToASCII as an option would mitigate some of the problems with the latter case, but probably shouldn't be the only additional option. What else makes sense—URL encoding? MIME quoted-printable? Base64?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant