Closed
Description
Summary
Use stderr to print prompt messages and stdout for output
Problem Definition
Using the command appcli keys add ...
the client ask for a passphrase and confirmation on stderr and then print the result on stderr as well. Because of this, piping the output to another command becomes very difficult. For example I can use the --o json
to additionally parse the output of the appcli keys add
with jq
but since the output is mixed with the passphrase prompt it became overly complicate to do such piping.
To be noted that the command appcli keys show
does not suffer of the same issue, the passphrase is prompted on stderr and the output is printed on stdout
Proposal
Replicate the same behavior of appcli keys show
to appcli keys add
in regards of piping
For Admin Use
- Not duplicate issue
- Appropriate labels applied
- Appropriate contributors tagged
- Contributor assigned/self-assigned