22
22
--passphrase: Passphrase to decrypt the files. This option is insecure on a
23
23
multi-user machine; use the --passphrase_file option instead.
24
24
--passphrase_file: Specify a file to read the passphrase from (only reads the
25
- first line).
25
+ first line). Use "-" (without quotes) for stdin.
26
26
--repo_dir: Path to C++ SDK Github repository. Defaults to current directory.
27
27
28
28
This script will perform the following:
48
48
49
49
flags .DEFINE_string ("repo_dir" , os .getcwd (), "Path to C++ SDK Github repo." )
50
50
flags .DEFINE_string ("passphrase" , None , "The passphrase itself." )
51
- flags .DEFINE_string ("passphrase_file" , None , "Path to file with passphrase." )
51
+ flags .DEFINE_string ("passphrase_file" , None ,
52
+ "Path to file with passphrase. Use \" -\" (without quotes) for stdin." )
52
53
flags .DEFINE_string ("artifact" , None , "Artifact Path, google-services.json will be placed here." )
53
54
54
55
@@ -60,6 +61,8 @@ def main(argv):
60
61
# The passphrase is sensitive, do not log.
61
62
if FLAGS .passphrase :
62
63
passphrase = FLAGS .passphrase
64
+ elif FLAGS .passphrase_file == "-" :
65
+ passphrase = input ()
63
66
elif FLAGS .passphrase_file :
64
67
with open (FLAGS .passphrase_file , "r" ) as f :
65
68
passphrase = f .readline ().strip ()
0 commit comments