diff --git a/core/src/main/java/google/registry/tools/RegistryCli.java b/core/src/main/java/google/registry/tools/RegistryCli.java index 9463b1daa..b268bcaf2 100644 --- a/core/src/main/java/google/registry/tools/RegistryCli.java +++ b/core/src/main/java/google/registry/tools/RegistryCli.java @@ -66,6 +66,12 @@ final class RegistryCli implements AutoCloseable, CommandRunner { + "If not set, credentials saved by running `nomulus login' will be used.") private String credentialJson = null; + @Parameter( + names = {"--sql_access_info"}, + description = "Name of a file containing space-separated SQL access info used when deploying " + + "Beam pipelines") + private String sqlAccessInfoFile = null; + // Do not make this final - compile-time constant inlining may interfere with JCommander. @ParametersDelegate private LoggingParameters loggingParams = new LoggingParameters(); @@ -161,7 +167,7 @@ final class RegistryCli implements AutoCloseable, CommandRunner { component = DaggerRegistryToolComponent.builder() .credentialFilePath(credentialJson) - .beamJpaModule(new BeamJpaModule(credentialJson)) + .beamJpaModule(new BeamJpaModule(sqlAccessInfoFile)) .build(); // JCommander stores sub-commands as nested JCommander objects containing a list of user objects