From e64d842301b1c1e1ddf80ed1bb23c32cc477de6a Mon Sep 17 00:00:00 2001 From: Aaron DeRuvo Date: Wed, 17 Jan 2024 15:10:17 +0200 Subject: [PATCH] table print function is not used. remove dep (#78) Co-authored-by: Aaron --- packages/cli/package.json | 2 -- packages/cli/src/utils/cli.ts | 9 --------- yarn.lock | 9 --------- 3 files changed, 20 deletions(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 5432eaac8..82df32454 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -54,7 +54,6 @@ "bignumber.js": "9.0.0", "bip32": "3.1.0", "chalk": "^2.4.2", - "cli-table": "^0.3.1", "command-exists": "^1.2.9", "debug": "^4.1.1", "events": "^3.0.0", @@ -69,7 +68,6 @@ "devDependencies": { "@celo/celo-devchain": "^6.0.3", "@celo/dev-utils": "0.0.1-beta.1", - "@types/cli-table": "^0.3.0", "@types/debug": "^4.1.4", "@types/fs-extra": "^8.0.0", "@types/humanize-duration": "^3.27.0", diff --git a/packages/cli/src/utils/cli.ts b/packages/cli/src/utils/cli.ts index 16d5e73dd..ebad41ff2 100644 --- a/packages/cli/src/utils/cli.ts +++ b/packages/cli/src/utils/cli.ts @@ -2,7 +2,6 @@ import { CeloTransactionObject, CeloTx, EventLog, parseDecodedParams } from '@ce import { Errors, ux } from '@oclif/core' import BigNumber from 'bignumber.js' import chalk from 'chalk' -import Table from 'cli-table' const CLIError = Errors.CLIError @@ -84,14 +83,6 @@ function toStringValueMapRecursive(valueMap: Record, prefix: string .join('\n') } -export function printVTable(valueMap: Record) { - const table = new Table() - Object.keys(valueMap).forEach((key) => { - table.push({ [key]: valueMap[key] }) - }) - console.log(table.toString()) -} - export function failWith(msg: string): never { throw new CLIError(msg) } diff --git a/yarn.lock b/yarn.lock index 0cbe3e771..70d29b5d8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -849,7 +849,6 @@ __metadata: "@oclif/plugin-not-found": "npm:^3.0.7" "@oclif/plugin-plugins": "npm:^4.1.14" "@oclif/plugin-warn-if-update-available": "npm:^3.0.8" - "@types/cli-table": "npm:^0.3.0" "@types/command-exists": "npm:^1.2.0" "@types/debug": "npm:^4.1.4" "@types/fs-extra": "npm:^8.0.0" @@ -862,7 +861,6 @@ __metadata: bignumber.js: "npm:9.0.0" bip32: "npm:3.1.0" chalk: "npm:^2.4.2" - cli-table: "npm:^0.3.1" command-exists: "npm:^1.2.9" debug: "npm:^4.1.1" events: "npm:^3.0.0" @@ -5406,13 +5404,6 @@ __metadata: languageName: node linkType: hard -"@types/cli-table@npm:^0.3.0": - version: 0.3.1 - resolution: "@types/cli-table@npm:0.3.1" - checksum: d6017999e3b800d9c36172faaad3177d71644aaa322d6e935ead62ca0f3b423776d58ab3a906c00935745a794778143e1f7577088789bbb4835b3986357bdd05 - languageName: node - linkType: hard - "@types/command-exists@npm:^1.2.0": version: 1.2.0 resolution: "@types/command-exists@npm:1.2.0"