age-plugin-tpm icon indicating copy to clipboard operation
age-plugin-tpm copied to clipboard

Move prompts to stderr

Open dcousens opened this issue 1 year ago • 2 comments

I think it would be better to print prompts like https://github.com/Foxboron/age-plugin-tpm/blob/5dedd8a6a240ef68851884fe850293e3cc954ac6/cmd/age-plugin-tpm/main.go#L90-L100 to stderr, ~as is common in POSIX applications~.

This became problematic for me when I was trying the following:

age-plugin-tpm --generate --pin > test.tpm

And the prompt didn't show

dcousens avatar Jul 21 '24 04:07 dcousens

Actually, I don't know what the convention is, but stderr seems an easier option than stdout?

dcousens avatar Jul 21 '24 04:07 dcousens

I don't think stderr is appropriate, but I'll research it a bit.

Foxboron avatar Jul 21 '24 16:07 Foxboron