Skip to content

Commit

Permalink
table print function is not used. remove dep (#78)
Browse files Browse the repository at this point in the history
Co-authored-by: Aaron <[email protected]>
  • Loading branch information
aaronmgdr and aaronmgdr authored Jan 17, 2024
1 parent 3f6c589 commit e64d842
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
2 changes: 0 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
9 changes: 0 additions & 9 deletions packages/cli/src/utils/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -84,14 +83,6 @@ function toStringValueMapRecursive(valueMap: Record<string, any>, prefix: string
.join('\n')
}

export function printVTable(valueMap: Record<string, any>) {
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)
}
Expand Down
9 changes: 0 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit e64d842

Please sign in to comment.