All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.cern.ZKPolicy Maven / Gradle / Ivy

There is a newer version: 1.0.1-21
Show newest version
/*
* 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