@broadcom/ops-for-zowe-cli
Version:
OPS/MVS® Plug-in for Zowe CLI
54 lines (53 loc) • 1.66 kB
TypeScript
import { IHandlerParameters } from "@zowe/imperative";
import { IShowRecordsResponse } from "../doc";
export declare class RecordListUtils {
private static readonly headerFieldNames;
private static readonly recordFieldNames;
/**
* returns formatted records results or message
*
* @static
* @param {IShowRecordsResponse} response
* @param {IHandlerParameters} params
* @return {*} {string}
* @memberof RecordListUtils
*/
static printShowRecordsResponse(response: IShowRecordsResponse, params: IHandlerParameters): string;
/**
* calls selected output formatter
*
* @static
* @param {IShowRecordsResponse} response
* @param {IHandlerParameters} params
* @return {*} {string}
* @memberof RecordListUtils
*/
static formatOutput(response: IShowRecordsResponse, params: IHandlerParameters): string;
/**
* formats records output for default
*
* @static
* @param {IShowRecordsResponse} response
* @return {*} {string}
* @memberof RecordListUtils
*/
static formatNameValue(response: IShowRecordsResponse): string;
/**
* formats records output with color
*
* @static
* @param {IShowRecordsResponse} response
* @return {*} {string}
* @memberof RecordListUtils
*/
static formatNameValueColor(response: IShowRecordsResponse): string;
/**
* formats records output for CSV
*
* @static
* @param {IShowRecordsResponse} response
* @return {*} {string}
* @memberof RecordListUtils
*/
static formatCSV(response: IShowRecordsResponse): string;
}