ch.cern.ZKPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cerndb-sw-zkpolicy Show documentation
Show all versions of cerndb-sw-zkpolicy Show documentation
zkpolicy - ZooKeeper Policy Auditing Tool
/*
* Copyright © 2020, CERN
* This software is distributed under the terms of the MIT Licence,
* copied verbatim in the file 'LICENSE'. In applying this licence,
* CERN does not waive the privileges and immunities
* granted to it by virtue of its status as an Intergovernmental Organization
* or submit itself to any jurisdiction.
*/
package ch.cern;
import java.io.IOException;
import picocli.CommandLine;
public final class ZKPolicy {
private static ZKPolicyCli zkpcli;
/**
* Main function of the ZK Policy tool.
*
* @param args CLI arguments.
*/
public static void main(String[] args) {
zkpcli = new ZKPolicyCli();
CommandLine commandLine = new CommandLine(zkpcli);
commandLine.setExecutionStrategy(parseResult -> {
try {
return zkpcli.executionStrategy(parseResult);
} catch (IOException e) {
return -1;
}
});
commandLine.execute(args);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy