Search in sources :

Example 1 with CsvTableRenderer

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

the class CLITestBase method createCLIConfig.

protected 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(co.cask.cdap.cli.util.table.CsvTableRenderer) ClientConfig(co.cask.cdap.client.config.ClientConfig) ConnectionConfig(co.cask.cdap.client.config.ConnectionConfig)

Aggregations

CsvTableRenderer (co.cask.cdap.cli.util.table.CsvTableRenderer)1 ClientConfig (co.cask.cdap.client.config.ClientConfig)1 ConnectionConfig (co.cask.cdap.client.config.ConnectionConfig)1