Skip to content

Commit

Permalink
Revert "Add figlet to CLI (#3008)" (#3033)
Browse files Browse the repository at this point in the history
This reverts commit c606b6a.

### Description

<!--
What's included in this PR?
-->

### Drive-by changes

<!--
Are there any minor or drive-by changes also included?
-->

### Related issues

<!--
- Fixes #[issue number here]
-->

### Backward compatibility

<!--
Are these changes backward compatible? Are there any infrastructure
implications, e.g. changes that would prohibit deploying older commits
using this infra tooling?

Yes/No
-->

### Testing

<!--
What kind of testing have these changes undergone?

None/Manual/Unit Tests
-->
  • Loading branch information
nambrot authored Dec 7, 2023
1 parent 1a64cef commit 980ef1f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
8 changes: 2 additions & 6 deletions typescript/cli/cli.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#! /usr/bin/env node
import figlet from 'figlet';
import chalk from 'chalk';
import yargs from 'yargs';

import { errorRed } from './logger.js';
Expand All @@ -13,11 +13,7 @@ import { VERSION } from './src/version.js';
// From yargs code:
const MISSING_PARAMS_ERROR = 'Not enough non-option arguments';

console.log(
figlet.textSync('Hyperlane', {
font: 'ANSI Shadow',
}),
);
console.log(chalk.blue('Hyperlane'), chalk.magentaBright('CLI'));

try {
await yargs(process.argv.slice(2))
Expand Down
2 changes: 0 additions & 2 deletions typescript/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
"bignumber.js": "^9.1.1",
"chalk": "^5.3.0",
"ethers": "^5.7.2",
"figlet": "^1.7.0",
"terminal-link": "^3.0.0",
"yaml": "^2.3.1",
"yargs": "^17.7.2",
"zod": "^3.21.2"
},
"devDependencies": {
"@types/figlet": "^1",
"@types/mocha": "^10.0.1",
"@types/node": "^18.14.5",
"@types/yargs": "^17.0.24",
Expand Down
18 changes: 0 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4238,7 +4238,6 @@ __metadata:
"@hyperlane-xyz/sdk": "npm:3.3.0"
"@hyperlane-xyz/utils": "npm:3.3.0"
"@inquirer/prompts": "npm:^3.0.0"
"@types/figlet": "npm:^1"
"@types/mocha": "npm:^10.0.1"
"@types/node": "npm:^18.14.5"
"@types/yargs": "npm:^17.0.24"
Expand All @@ -4250,7 +4249,6 @@ __metadata:
eslint: "npm:^8.43.0"
eslint-config-prettier: "npm:^8.8.0"
ethers: "npm:^5.7.2"
figlet: "npm:^1.7.0"
mocha: "npm:^10.2.0"
prettier: "npm:^2.8.8"
terminal-link: "npm:^3.0.0"
Expand Down Expand Up @@ -5930,13 +5928,6 @@ __metadata:
languageName: node
linkType: hard

"@types/figlet@npm:^1":
version: 1.5.8
resolution: "@types/figlet@npm:1.5.8"
checksum: 95d81e778265bc8b4f1b58e98c7d8889b8a3046ef775aa0e95b6d41ad97ace47813887427d5bdfd760b6a3a4767d8799bbb8a1f7d5bbf17f6142ae46e32509d2
languageName: node
linkType: hard

"@types/form-data@npm:0.0.33":
version: 0.0.33
resolution: "@types/form-data@npm:0.0.33"
Expand Down Expand Up @@ -9816,15 +9807,6 @@ __metadata:
languageName: node
linkType: hard

"figlet@npm:^1.7.0":
version: 1.7.0
resolution: "figlet@npm:1.7.0"
bin:
figlet: bin/index.js
checksum: 1baeed096fa90f5802022c4d36c24ebd59331f77f00f9b3de68b13f42f7ab210b327f4935fd194fc29575120e91aa95a2f43d63c2760f3e374a4f8348070c784
languageName: node
linkType: hard

"figures@npm:^3.2.0":
version: 3.2.0
resolution: "figures@npm:3.2.0"
Expand Down

0 comments on commit 980ef1f

Please sign in to comment.