vault.py
5.75 KB
-
More helpful prompts from ansible-vault encrypt/decrypt · 090cfc9e
Now we issue a "Reading … from stdin" prompt if our input isatty(), as gpg does. We also suppress the "x successful" confirmation message at the end if we're part of a pipeline. (The latter requires that we not close sys.stdout in VaultEditor, and for symmetry we do the same for sys.stdin, though it doesn't matter in that case.)
Abhijit Menon-Sen committed