-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conditionally formats cli transactions output (#3708)
* conditionally formats cli transactions output we've added a lot of logic to the 'wallet:transactions' command to format the table to make it easier to read in the CLI. however, this formatting logic removes data from the table that might be useful when outputting transaction data with the '--csv' or '--output' flags. - refactors logic for assigning 'group' string to table rows for the same transaction into 'getRowGroup' method - only includes the 'group' column in output if formatting the table for the CLI - includes all transaction details (hash, fee, assetId, assetName, etc.) in each row if using '--csv' or '--output' flags * removes default formatted value in getTransactionRows * defines enum for oclif table format format can be cli, csv, json, or yaml the latter three correspond to the three possible values of the '--output' oclif table flag uses Format enum instead of boolean 'formatted' to indicate whether to format table for cli output
- Loading branch information
Showing
2 changed files
with
81 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters