Search in sources :

Example 61 with JCommander

use of com.beust.jcommander.JCommander in project GeoGig by boundlessgeo.

the class SQLServerCommandProxy method getCommandParser.

/**
     * @return the JCommander parser for this extension
     * @see JCommander
     */
@Override
public JCommander getCommandParser() {
    JCommander commander = new JCommander();
    commander.setProgramName("geogig sqlserver");
    commander.addCommand("import", new SQLServerImport());
    commander.addCommand("list", new SQLServerList());
    commander.addCommand("describe", new SQLServerDescribe());
    commander.addCommand("export", new SQLServerExport());
    return commander;
}
Also used : SQLServerList(org.locationtech.geogig.geotools.cli.porcelain.SQLServerList) JCommander(com.beust.jcommander.JCommander) SQLServerExport(org.locationtech.geogig.geotools.cli.porcelain.SQLServerExport) SQLServerDescribe(org.locationtech.geogig.geotools.cli.porcelain.SQLServerDescribe) SQLServerImport(org.locationtech.geogig.geotools.cli.porcelain.SQLServerImport)

Example 62 with JCommander

use of com.beust.jcommander.JCommander in project GeoGig by boundlessgeo.

the class ShpCommandProxy method getCommandParser.

/**
     * @return the JCommander parser for this extension
     * @see JCommander
     */
@Override
public JCommander getCommandParser() {
    JCommander commander = new JCommander();
    commander.setProgramName("geogig shp");
    commander.addCommand("import", new ShpImport());
    commander.addCommand("export", new ShpExport());
    commander.addCommand("export-diff", new ShpExportDiff());
    return commander;
}
Also used : ShpExportDiff(org.locationtech.geogig.geotools.cli.porcelain.ShpExportDiff) JCommander(com.beust.jcommander.JCommander) ShpImport(org.locationtech.geogig.geotools.cli.porcelain.ShpImport) ShpExport(org.locationtech.geogig.geotools.cli.porcelain.ShpExport)

Example 63 with JCommander

use of com.beust.jcommander.JCommander in project GeoGig by boundlessgeo.

the class GeoJsonCommandProxy method getCommandParser.

/**
     * @return the JCommander parser for this extension
     * @see JCommander
     */
@Override
public JCommander getCommandParser() {
    JCommander commander = new JCommander();
    commander.setProgramName("geogig geojson");
    commander.addCommand("import", new GeoJsonImport());
    commander.addCommand("export", new GeoJsonExport());
    return commander;
}
Also used : GeoJsonExport(org.locationtech.geogig.geotools.cli.porcelain.GeoJsonExport) JCommander(com.beust.jcommander.JCommander) GeoJsonImport(org.locationtech.geogig.geotools.cli.porcelain.GeoJsonImport)

Example 64 with JCommander

use of com.beust.jcommander.JCommander in project GeoGig by boundlessgeo.

the class OracleCommandProxy method getCommandParser.

/**
     * @return the JCommander parser for this extension
     * @see JCommander
     */
@Override
public JCommander getCommandParser() {
    JCommander commander = new JCommander();
    commander.setProgramName("geogig oracle");
    commander.addCommand("import", new OracleImport());
    commander.addCommand("list", new OracleList());
    commander.addCommand("describe", new OracleDescribe());
    commander.addCommand("export", new OracleExport());
    return commander;
}
Also used : OracleList(org.locationtech.geogig.geotools.cli.porcelain.OracleList) OracleExport(org.locationtech.geogig.geotools.cli.porcelain.OracleExport) JCommander(com.beust.jcommander.JCommander) OracleDescribe(org.locationtech.geogig.geotools.cli.porcelain.OracleDescribe) OracleImport(org.locationtech.geogig.geotools.cli.porcelain.OracleImport)

Example 65 with JCommander

use of com.beust.jcommander.JCommander in project GeoGig by boundlessgeo.

the class RemoteExtension method getCommandParser.

/**
     * @return the JCommander parser for this extension
     * @see JCommander
     */
@Override
public JCommander getCommandParser() {
    JCommander commander = new JCommander(this);
    commander.setProgramName("geogig remote");
    commander.addCommand("add", new RemoteAdd());
    commander.addCommand("rm", new RemoteRemove());
    commander.addCommand("list", new RemoteList());
    return commander;
}
Also used : JCommander(com.beust.jcommander.JCommander)

Aggregations

JCommander (com.beust.jcommander.JCommander)65 ParameterException (com.beust.jcommander.ParameterException)15 IOException (java.io.IOException)10 Map (java.util.Map)6 ParameterDescription (com.beust.jcommander.ParameterDescription)4 FileInputStream (java.io.FileInputStream)3 Console (com.beust.jcommander.internal.Console)2 DefaultCommand (com.evolveum.midpoint.cli.common.DefaultCommand)2 ObjectMapper (com.fasterxml.jackson.databind.ObjectMapper)2 Charsets (com.google.common.base.Charsets)2 Throwables (com.google.common.base.Throwables)2 HostAndPort (com.google.common.net.HostAndPort)2 Service (com.google.common.util.concurrent.Service)2 CreationException (com.google.inject.CreationException)2 SystemException (com.torodb.core.exceptions.SystemException)2 BackendPasswordConfig (com.torodb.packaging.config.model.backend.BackendPasswordConfig)2 AbstractDerby (com.torodb.packaging.config.model.backend.derby.AbstractDerby)2 AbstractPostgres (com.torodb.packaging.config.model.backend.postgres.AbstractPostgres)2 AbstractReplication (com.torodb.packaging.config.model.protocol.mongo.AbstractReplication)2 MongoPasswordConfig (com.torodb.packaging.config.model.protocol.mongo.MongoPasswordConfig)2