httpcat-cli 0.0.27 → 0.1.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/dependabot.yml +2 -0
- package/.github/workflows/README.md +37 -4
- package/.github/workflows/ci.yml +31 -20
- package/.github/workflows/homebrew-tap.yml +1 -1
- package/.github/workflows/publish-switch.yml +41 -0
- package/.github/workflows/rc-publish.yml +196 -0
- package/.github/workflows/release.yml +267 -85
- package/README.md +107 -108
- package/bun.lock +2933 -0
- package/dist/commands/account.d.ts.map +1 -1
- package/dist/commands/account.js +14 -7
- package/dist/commands/account.js.map +1 -1
- package/dist/commands/balances.d.ts.map +1 -0
- package/dist/commands/balances.js +171 -0
- package/dist/commands/balances.js.map +1 -0
- package/dist/commands/buy.d.ts.map +1 -1
- package/dist/commands/buy.js +743 -35
- package/dist/commands/buy.js.map +1 -1
- package/dist/commands/chat.d.ts.map +1 -1
- package/dist/commands/chat.js +467 -906
- package/dist/commands/chat.js.map +1 -1
- package/dist/commands/claim.d.ts.map +1 -0
- package/dist/commands/claim.js +65 -0
- package/dist/commands/claim.js.map +1 -0
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +0 -1
- package/dist/commands/create.js.map +1 -1
- package/dist/commands/info.d.ts.map +1 -1
- package/dist/commands/info.js +143 -38
- package/dist/commands/info.js.map +1 -1
- package/dist/commands/list.d.ts.map +1 -1
- package/dist/commands/list.js +31 -27
- package/dist/commands/list.js.map +1 -1
- package/dist/commands/positions.d.ts.map +1 -1
- package/dist/commands/positions.js +178 -106
- package/dist/commands/positions.js.map +1 -1
- package/dist/commands/sell.d.ts.map +1 -1
- package/dist/commands/sell.js +720 -28
- package/dist/commands/sell.js.map +1 -1
- package/dist/index.js +321 -104
- package/dist/index.js.map +1 -1
- package/dist/interactive/shell.d.ts.map +1 -1
- package/dist/interactive/shell.js +328 -179
- package/dist/interactive/shell.js.map +1 -1
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +8 -8
- package/dist/mcp/tools.js.map +1 -1
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +66 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/formatting.d.ts.map +1 -1
- package/dist/utils/formatting.js +3 -5
- package/dist/utils/formatting.js.map +1 -1
- package/dist/utils/token-resolver.d.ts.map +1 -1
- package/dist/utils/token-resolver.js +70 -68
- package/dist/utils/token-resolver.js.map +1 -1
- package/dist/utils/validation.d.ts.map +1 -1
- package/dist/utils/validation.js +4 -3
- package/dist/utils/validation.js.map +1 -1
- package/jest.config.js +1 -1
- package/package.json +19 -13
- package/tests/README.md +0 -1
- package/.claude/settings.local.json +0 -41
- package/dist/commands/balance.d.ts.map +0 -1
- package/dist/commands/balance.js +0 -112
- package/dist/commands/balance.js.map +0 -1
- package/homebrew-httpcat/Formula/httpcat.rb +0 -18
- package/homebrew-httpcat/README.md +0 -31
- package/homebrew-httpcat/homebrew-httpcat/Formula/httpcat.rb +0 -18
- package/homebrew-httpcat/homebrew-httpcat/README.md +0 -31
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "httpcat-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1-rc.1",
|
|
4
4
|
"description": "CLI tool for interacting with httpcat agent - create, buy, and sell tokens with x402 payments",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"build": "tsc",
|
|
12
12
|
"dev": "tsc --watch",
|
|
13
13
|
"start": "node dist/index.js",
|
|
14
|
-
"prepublishOnly": "
|
|
15
|
-
"test": "
|
|
16
|
-
"test:watch": "
|
|
17
|
-
"test:coverage": "
|
|
18
|
-
"test:unit": "
|
|
19
|
-
"test:integration": "
|
|
14
|
+
"prepublishOnly": "bun run build",
|
|
15
|
+
"test": "vitest run",
|
|
16
|
+
"test:watch": "vitest",
|
|
17
|
+
"test:coverage": "vitest run --coverage",
|
|
18
|
+
"test:unit": "vitest run tests/unit",
|
|
19
|
+
"test:integration": "vitest run tests/integration"
|
|
20
20
|
},
|
|
21
21
|
"keywords": [
|
|
22
22
|
"httpcat",
|
|
@@ -43,27 +43,33 @@
|
|
|
43
43
|
"@scure/bip39": "^2.0.1",
|
|
44
44
|
"chalk": "^5.3.0",
|
|
45
45
|
"cli-table3": "^0.6.3",
|
|
46
|
-
"commander": "^
|
|
47
|
-
"conf": "^
|
|
46
|
+
"commander": "^14.0.2",
|
|
47
|
+
"conf": "^15.0.2",
|
|
48
48
|
"global": "^4.4.0",
|
|
49
49
|
"inquirer": "^9.2.12",
|
|
50
50
|
"neo-blessed": "^0.2.0",
|
|
51
|
-
"ora": "^
|
|
51
|
+
"ora": "^9.0.0",
|
|
52
52
|
"viem": "^2.21.54",
|
|
53
53
|
"ws": "^8.18.0",
|
|
54
54
|
"x402-fetch": "^0.7.3",
|
|
55
55
|
"zod": "^4.1.13"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@jest/globals": "^
|
|
58
|
+
"@jest/globals": "^30.2.0",
|
|
59
59
|
"@types/blessed": "^0.1.26",
|
|
60
60
|
"@types/inquirer": "^9.0.7",
|
|
61
61
|
"@types/jest": "^29.5.12",
|
|
62
|
-
"@types/node": "^
|
|
62
|
+
"@types/node": "^25.0.0",
|
|
63
63
|
"@types/ws": "^8.5.13",
|
|
64
|
+
"@vitest/ui": "^4.0.16",
|
|
64
65
|
"jest": "^29.7.0",
|
|
65
66
|
"ts-jest": "^29.1.2",
|
|
66
|
-
"typescript": "^5.3.3"
|
|
67
|
+
"typescript": "^5.3.3",
|
|
68
|
+
"vitest": "^4.0.16"
|
|
69
|
+
},
|
|
70
|
+
"resolutions": {
|
|
71
|
+
"@solana/codecs-core": "5.1.0",
|
|
72
|
+
"@solana/instruction-plans/@solana/codecs-core": "5.1.0"
|
|
67
73
|
},
|
|
68
74
|
"engines": {
|
|
69
75
|
"node": ">=18.0.0"
|
package/tests/README.md
CHANGED
|
@@ -64,7 +64,6 @@ The test suite aims for comprehensive coverage of:
|
|
|
64
64
|
- Configuration management
|
|
65
65
|
- HTTP client (with mocked dependencies)
|
|
66
66
|
- Command functions (with mocked client)
|
|
67
|
-
- Token identifier resolution (addresses, UUIDs, names, symbols)
|
|
68
67
|
|
|
69
68
|
- **Integration Tests**: Full workflows
|
|
70
69
|
- Token creation and trading lifecycle
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(gh repo create:*)",
|
|
5
|
-
"WebSearch",
|
|
6
|
-
"Bash(npm publish:*)",
|
|
7
|
-
"Bash(curl:*)",
|
|
8
|
-
"Bash(shasum:*)",
|
|
9
|
-
"Bash(git add:*)",
|
|
10
|
-
"Bash(git commit:*)",
|
|
11
|
-
"Bash(git push)",
|
|
12
|
-
"Bash(git init:*)",
|
|
13
|
-
"Bash(git remote add:*)",
|
|
14
|
-
"Bash(git branch:*)",
|
|
15
|
-
"Bash(git push:*)",
|
|
16
|
-
"Bash(brew tap:*)",
|
|
17
|
-
"Bash(brew install:*)",
|
|
18
|
-
"Bash(brew info:*)",
|
|
19
|
-
"Bash(npm view:*)",
|
|
20
|
-
"Bash(yarn build:*)",
|
|
21
|
-
"Bash(npm version:*)",
|
|
22
|
-
"Bash(npm run build:*)",
|
|
23
|
-
"Bash(gh pr list:*)",
|
|
24
|
-
"Bash(gh pr view:*)",
|
|
25
|
-
"Bash(gh pr diff:*)",
|
|
26
|
-
"Bash(gh pr merge:*)",
|
|
27
|
-
"Bash(cat:*)",
|
|
28
|
-
"Bash(git pull:*)",
|
|
29
|
-
"Bash(git rebase:*)",
|
|
30
|
-
"Bash(bun test:*)",
|
|
31
|
-
"Bash(gh run list:*)",
|
|
32
|
-
"Bash(gh run:*)",
|
|
33
|
-
"Bash(ssh:*)",
|
|
34
|
-
"Bash(md5sum:*)",
|
|
35
|
-
"Bash(xargs:*)",
|
|
36
|
-
"Bash(jq)"
|
|
37
|
-
],
|
|
38
|
-
"deny": [],
|
|
39
|
-
"ask": []
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"balance.d.ts","sourceRoot":"","sources":["../../src/commands/balance.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAShC,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED;;;GAGG;AACH,wBAAsB,YAAY,CAAC,UAAU,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,CA8GzE;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAGzD"}
|
package/dist/commands/balance.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import chalk from "chalk";
|
|
2
|
-
import { privateKeyToAccount } from "viem/accounts";
|
|
3
|
-
import { formatEther } from "viem";
|
|
4
|
-
import { getUSDCBalance } from "x402/shared/evm";
|
|
5
|
-
import { evm } from "x402/types";
|
|
6
|
-
import { printCat } from "../interactive/art.js";
|
|
7
|
-
import { formatAddress, printWarning } from "../utils/formatting.js";
|
|
8
|
-
import inquirer from "inquirer";
|
|
9
|
-
/**
|
|
10
|
-
* Checks and displays wallet balances for a given private key.
|
|
11
|
-
* This mimics the behavior of promptForPrivateKey but without saving to config.
|
|
12
|
-
*/
|
|
13
|
-
export async function checkBalance(privateKey) {
|
|
14
|
-
let pk = privateKey;
|
|
15
|
-
// If no private key provided, prompt for it (same as other commands)
|
|
16
|
-
if (!pk) {
|
|
17
|
-
console.log();
|
|
18
|
-
// Show wizard cat
|
|
19
|
-
printCat("wizard");
|
|
20
|
-
console.log(chalk.bold.cyan("🔐 Checking wallet balance...\n"));
|
|
21
|
-
// Prompt for private key with password masking
|
|
22
|
-
const answers = await inquirer.prompt([
|
|
23
|
-
{
|
|
24
|
-
type: "password",
|
|
25
|
-
name: "privateKey",
|
|
26
|
-
message: "Enter your private key:",
|
|
27
|
-
mask: "•",
|
|
28
|
-
validate: (input) => {
|
|
29
|
-
if (!input) {
|
|
30
|
-
return "Private key is required";
|
|
31
|
-
}
|
|
32
|
-
if (!input.startsWith("0x")) {
|
|
33
|
-
return "Private key must start with 0x";
|
|
34
|
-
}
|
|
35
|
-
if (input.length !== 66) {
|
|
36
|
-
return "Private key must be 66 characters long (0x + 64 hex chars)";
|
|
37
|
-
}
|
|
38
|
-
return true;
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
]);
|
|
42
|
-
pk = answers.privateKey;
|
|
43
|
-
console.log(chalk.green("✓ Private key validated!\n"));
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
// If private key provided, still show the wizard cat and header
|
|
47
|
-
console.log();
|
|
48
|
-
printCat("wizard");
|
|
49
|
-
console.log(chalk.bold.cyan("🔐 Checking wallet balance...\n"));
|
|
50
|
-
}
|
|
51
|
-
// Derive wallet address
|
|
52
|
-
console.log(chalk.dim("📍 Deriving wallet address..."));
|
|
53
|
-
const account = privateKeyToAccount(pk);
|
|
54
|
-
const address = account.address;
|
|
55
|
-
console.log(chalk.dim(" Wallet:"), chalk.cyan(formatAddress(address, 12)));
|
|
56
|
-
console.log();
|
|
57
|
-
// Check balances
|
|
58
|
-
console.log(chalk.dim("💰 Checking balances on Base Sepolia...\n"));
|
|
59
|
-
try {
|
|
60
|
-
// Create signer to check balances
|
|
61
|
-
const signer = evm.createSignerSepolia(pk);
|
|
62
|
-
// Check ETH balance
|
|
63
|
-
const ethBalance = await signer.getBalance({ address });
|
|
64
|
-
const ethFormatted = formatEther(ethBalance);
|
|
65
|
-
// Check USDC balance
|
|
66
|
-
const usdcBalance = await getUSDCBalance(signer, address);
|
|
67
|
-
const usdcFormatted = (Number(usdcBalance) / 10 ** 6).toFixed(2);
|
|
68
|
-
// Display balances
|
|
69
|
-
console.log(chalk.dim(" ETH: "), chalk.yellow(`${ethFormatted} ETH`));
|
|
70
|
-
console.log(chalk.dim(" USDC:"), chalk.green(`$${usdcFormatted} USDC`));
|
|
71
|
-
console.log();
|
|
72
|
-
// Show warnings if balances are low
|
|
73
|
-
const ethNum = Number(ethFormatted);
|
|
74
|
-
const usdcNum = Number(usdcFormatted);
|
|
75
|
-
if (ethNum < 0.001 && usdcNum < 1) {
|
|
76
|
-
printWarning("Low balances detected!");
|
|
77
|
-
console.log(chalk.dim(" You need Base Sepolia ETH for gas fees"));
|
|
78
|
-
console.log(chalk.dim(" You need Base Sepolia USDC for trading\n"));
|
|
79
|
-
}
|
|
80
|
-
else if (ethNum < 0.001) {
|
|
81
|
-
printWarning("Low ETH balance - you may not have enough for gas fees\n");
|
|
82
|
-
}
|
|
83
|
-
else if (usdcNum < 1) {
|
|
84
|
-
printWarning("Low USDC balance - you may not have enough for trades\n");
|
|
85
|
-
}
|
|
86
|
-
// Always show reminder about requirements
|
|
87
|
-
console.log(chalk.yellow("⚠️ Important:"));
|
|
88
|
-
console.log(chalk.dim(" Ensure you have Base Sepolia ETH (for gas fees)"));
|
|
89
|
-
console.log(chalk.dim(" and Base Sepolia USDC (for trading) in this wallet!\n"));
|
|
90
|
-
return {
|
|
91
|
-
address,
|
|
92
|
-
ethBalance: ethBalance.toString(),
|
|
93
|
-
usdcBalance: usdcBalance.toString(),
|
|
94
|
-
ethFormatted,
|
|
95
|
-
usdcFormatted,
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
catch (error) {
|
|
99
|
-
// If balance check fails, just warn but continue
|
|
100
|
-
console.log(chalk.yellow("⚠️ Could not check balances (network may be slow)"));
|
|
101
|
-
console.log(chalk.dim(" Make sure you have Base Sepolia ETH and USDC!\n"));
|
|
102
|
-
throw error;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Display balance information (for JSON output)
|
|
107
|
-
*/
|
|
108
|
-
export function displayBalance(balance) {
|
|
109
|
-
// This is mainly for JSON mode, but we already display in checkBalance
|
|
110
|
-
// So this is a no-op for interactive mode
|
|
111
|
-
}
|
|
112
|
-
//# sourceMappingURL=balance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"balance.js","sourceRoot":"","sources":["../../src/commands/balance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,QAAQ,MAAM,UAAU,CAAC;AAUhC;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY,CAAC,UAAgB;IACjD,IAAI,EAAE,GAAG,UAAU,CAAC;IAEpB,qEAAqE;IACrE,IAAI,CAAC,EAAE,EAAE,CAAC;QACR,OAAO,CAAC,GAAG,EAAE,CAAC;QAEd,kBAAkB;QAClB,QAAQ,CAAC,QAAQ,CAAC,CAAC;QACnB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC,CAAC;QAEhE,+CAA+C;QAC/C,MAAM,OAAO,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC;YACpC;gBACE,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,YAAY;gBAClB,OAAO,EAAE,yBAA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C1B,YAAY,CAAC,0DAA0D,CAAC,CAAC;QAC3E,CAAC;aAAM,IAAI,OAAO,GAAG,CAAC,EAAE,CAAC;YACvB,YAAY,CAAC,yDAAyD,CAAC,CAAC;QAC1E,CAAC;QAED,0CAA0C;QAC1C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAChE,CAAC;QACF,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,GAAG,CAAC,0DAA0D,CAAC,CACtE,CAAC;QAEF,OAAO;YACL,OAAO;YACP,UAAU,EAAE,UAAU,CAAC,QAAQ,EAAE;YACjC,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE;YACnC,YAAY;YACZ,aAAa;SACd,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,iDAAiD;QACjD,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,MAAM,CAAC,oDAAoD,CAAC,CACnE,CAAC;QACF,OAAO,CAAC,GAAG,CACT,KAAK,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAChE,CAAC;QACF,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,OAAoB;IACjD,uEAAuE;IACvE,0CAA0C;AAC5C,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
class Httpcat < Formula
|
|
2
|
-
desc "CLI tool for interacting with httpcat agent - create, buy, and sell tokens with x402 payments"
|
|
3
|
-
homepage "https://github.com/hathbanger/httpcat-cli"
|
|
4
|
-
url "https://registry.npmjs.org/httpcat-cli/-/httpcat-cli-0.0.26.tgz"
|
|
5
|
-
sha256 "7dc2869faabd1c7be1953e5866c44175f76621de6b75d86c0063316537e51390"
|
|
6
|
-
license "MIT"
|
|
7
|
-
|
|
8
|
-
depends_on "node"
|
|
9
|
-
|
|
10
|
-
def install
|
|
11
|
-
system "npm", "install", *std_npm_args
|
|
12
|
-
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
test do
|
|
16
|
-
assert_match "0.0.26", shell_output("#{bin}/httpcat --version")
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Homebrew Tap for httpcat-cli
|
|
2
|
-
|
|
3
|
-
Official Homebrew tap for [httpcat-cli](https://github.com/hathbanger/httpcat-cli).
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
brew tap hathbanger/httpcat
|
|
9
|
-
brew install httpcat
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
After installation, you can use the `httpcat` command:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
httpcat --help
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Updating
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
brew upgrade httpcat
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Uninstall
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
brew uninstall httpcat
|
|
30
|
-
brew untap hathbanger/httpcat
|
|
31
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
class Httpcat < Formula
|
|
2
|
-
desc "CLI tool for interacting with httpcat agent - create, buy, and sell tokens with x402 payments"
|
|
3
|
-
homepage "https://github.com/hathbanger/httpcat-cli"
|
|
4
|
-
url "https://registry.npmjs.org/httpcat-cli/-/httpcat-cli-0.0.26.tgz"
|
|
5
|
-
sha256 "7dc2869faabd1c7be1953e5866c44175f76621de6b75d86c0063316537e51390"
|
|
6
|
-
license "MIT"
|
|
7
|
-
|
|
8
|
-
depends_on "node"
|
|
9
|
-
|
|
10
|
-
def install
|
|
11
|
-
system "npm", "install", *std_npm_args
|
|
12
|
-
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
13
|
-
end
|
|
14
|
-
|
|
15
|
-
test do
|
|
16
|
-
assert_match "0.0.26", shell_output("#{bin}/httpcat --version")
|
|
17
|
-
end
|
|
18
|
-
end
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# Homebrew Tap for httpcat-cli
|
|
2
|
-
|
|
3
|
-
Official Homebrew tap for [httpcat-cli](https://github.com/hathbanger/httpcat-cli).
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
brew tap hathbanger/httpcat
|
|
9
|
-
brew install httpcat
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Usage
|
|
13
|
-
|
|
14
|
-
After installation, you can use the `httpcat` command:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
httpcat --help
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Updating
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
brew upgrade httpcat
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
## Uninstall
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
brew uninstall httpcat
|
|
30
|
-
brew untap hathbanger/httpcat
|
|
31
|
-
```
|