Open dcousens opened 3 months ago
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~.
stderr
This became problematic for me when I was trying the following:
age-plugin-tpm --generate --pin > test.tpm
And the prompt didn't show
Actually, I don't know what the convention is, but stderr seems an easier option than stdout?
stdout
I don't think stderr is appropriate, but I'll research it a bit.
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:
And the prompt didn't show