Skip to content

zowex: Support --response-format-json option on all commands #837

@t1m0thyj

Description

@t1m0thyj

It would be nice if zowex supported a --response-format-json (--rfj) argument across all commands like Zowe CLI does.

Also for commands that return tabular data (e.g. zowex ds ls), there is currently code duplication that could be reduced by adding a class similar to Imperative's IHandlerFormatOutputApi.

Rather than requiring each command handler to have separate branches of code for handling table/CSV/JSON output, the rows/columns should be stored in a single structure in memory, and passed to a common format method:
format(TABLE_DATA *data, FormatType format, std::string &output)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpriority-mediumNot functioning - next quarter if capacity permits

    Type

    No type

    Projects

    Status

    Medium Priority

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions