Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove cli-table #78

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
9 changes: 0 additions & 9 deletions packages/cli/src/utils/cli.ts
Original file line number Diff line number Diff line change
@@ -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<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)
}
9 changes: 0 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -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"