2222--passphrase: Passphrase to decrypt the files. This option is insecure on a
2323 multi-user machine; use the --passphrase_file option instead.
2424--passphrase_file: Specify a file to read the passphrase from (only reads the
25- first line).
25+ first line). Use "-" (without quotes) for stdin.
2626--repo_dir: Path to C++ SDK Github repository. Defaults to current directory.
2727
2828This script will perform the following:
4848
4949flags .DEFINE_string ("repo_dir" , os .getcwd (), "Path to C++ SDK Github repo." )
5050flags .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." )
5253flags .DEFINE_string ("artifact" , None , "Artifact Path, google-services.json will be placed here." )
5354
5455
@@ -60,6 +61,8 @@ def main(argv):
6061 # The passphrase is sensitive, do not log.
6162 if FLAGS .passphrase :
6263 passphrase = FLAGS .passphrase
64+ elif FLAGS .passphrase_file == "-" :
65+ passphrase = input ()
6366 elif FLAGS .passphrase_file :
6467 with open (FLAGS .passphrase_file , "r" ) as f :
6568 passphrase = f .readline ().strip ()
0 commit comments