Search in sources :

Example 1 with CsvTableRenderer

use of io.cdap.cdap.cli.util.table.CsvTableRenderer in project cdap by caskdata.

the class CLIMainLinkTest method createCLIConfigWithURIPrefix.

public static CLIConfig createCLIConfigWithURIPrefix(URI standaloneUri) throws Exception {
    ConnectionConfig connectionConfig = InstanceURIParser.DEFAULT.parseInstanceURI(standaloneUri.toString(), null);
    ClientConfig clientConfig = new ClientConfig.Builder().setConnectionConfig(connectionConfig).build();
    clientConfig.setAllTimeouts(60000);
    return new CLIConfig(clientConfig, System.out, new CsvTableRenderer());
}
Also used : CsvTableRenderer(io.cdap.cdap.cli.util.table.CsvTableRenderer) ClientConfig(io.cdap.cdap.client.config.ClientConfig) ConnectionConfig(io.cdap.cdap.client.config.ConnectionConfig)

Example 2 with CsvTableRenderer

use of io.cdap.cdap.cli.util.table.CsvTableRenderer in project cdap by caskdata.

the class CLITestBase method createCLIConfig.

public static CLIConfig createCLIConfig(URI standaloneUri) throws Exception {
    ConnectionConfig connectionConfig = InstanceURIParser.DEFAULT.parse(standaloneUri.toString());
    ClientConfig clientConfig = new ClientConfig.Builder().setConnectionConfig(connectionConfig).build();
    clientConfig.setAllTimeouts(60000);
    return new CLIConfig(clientConfig, System.out, new CsvTableRenderer());
}
Also used : CsvTableRenderer(io.cdap.cdap.cli.util.table.CsvTableRenderer) ClientConfig(io.cdap.cdap.client.config.ClientConfig) ConnectionConfig(io.cdap.cdap.client.config.ConnectionConfig)

Aggregations

CsvTableRenderer (io.cdap.cdap.cli.util.table.CsvTableRenderer)2 ClientConfig (io.cdap.cdap.client.config.ClientConfig)2 ConnectionConfig (io.cdap.cdap.client.config.ConnectionConfig)2