File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
consul-populate-cli/src/main/java/com/frogdevelopment/consul/populate Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,12 @@ public class ConsulPopulateCommand implements Runnable {
25
25
String consulHost ;
26
26
@ Option (names = {"--consul.port" }, defaultValue = "8500" )
27
27
int consulPort ;
28
+ @ Option (names = {"--consul.acl-token" })
29
+ String aclToken ;
30
+ @ Option (names = {"--consul.dc" })
31
+ String dc ;
32
+ @ Option (names = {"--consul.timeout" })
33
+ Long timeout ;
28
34
@ Option (names = {"--consul.kv.prefix" })
29
35
String consulKvPrefix ;
30
36
@ Option (names = {"--consul.kv.version" })
@@ -36,12 +42,12 @@ public class ConsulPopulateCommand implements Runnable {
36
42
@ Option (names = {"--consul.files.rootPath" , "--consul.files.root-path" })
37
43
String consulFileRootPath ;
38
44
39
- public static void main (String [] args ) {
45
+ public static void main (final String [] args ) {
40
46
try {
41
47
final var exitCode = PicocliRunner .execute (ConsulPopulateCommand .class , args );
42
48
43
49
System .exit (exitCode );
44
- } catch (Exception e ) {
50
+ } catch (final Exception e ) {
45
51
log .error ("Unexpected exception" , e );
46
52
System .exit (CommandLine .ExitCode .SOFTWARE );
47
53
}
You can’t perform that action at this time.
0 commit comments