Skip to content

Commit

Permalink
remove info from table output in cli.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kroitor committed Aug 4, 2018
1 parent fc7fdea commit 2a9ca86
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/js/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ let [processPath, , exchangeId, methodName, ... params] = process.argv.filter (x
, details = process.argv.includes ('--details')
, no_table = process.argv.includes ('--no-table')
, iso8601 = process.argv.includes ('--iso8601')
, no_info = process.argv.includes ('--no-info')

//-----------------------------------------------------------------------------

Expand Down Expand Up @@ -150,9 +149,7 @@ const printHumanReadable = (exchange, result) => {
if (arrayOfObjects) {
log (result.length > 0 ? asTable (result.map (element => {
let keys = Object.keys (element)
if (no_info) {
delete element['info']
}
delete element['info']
keys.forEach (key => {
if (typeof element[key] === 'number') {
if (!iso8601)
Expand Down

0 comments on commit 2a9ca86

Please sign in to comment.