Skip to content

Commit 7410a7c

Browse files
committed
chore: prepare 1.0.14 release
1 parent a86fff4 commit 7410a7c

4 files changed

Lines changed: 50 additions & 2 deletions

File tree

Formula/kill-port-process-cli.rb

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
class KillPortProcessCli < Formula
2+
desc "CLI tool to kill processes by port"
3+
homepage "https://github.com/luckfunc/kill-port-process-cli"
4+
url "https://registry.npmjs.org/kill-port-process-cli/-/kill-port-process-cli-1.0.14.tgz"
5+
sha256 "3a8d761efbf68573daefab6e4bbf1f859e38edc74a305d8b69eef564f921ffdf"
6+
license "MIT"
7+
8+
depends_on "node"
9+
10+
on_linux do
11+
depends_on "lsof"
12+
end
13+
14+
def install
15+
libexec.install Dir["*"]
16+
17+
path_env = "#{Formula["node"].opt_bin}:$PATH"
18+
path_env = "#{Formula["lsof"].opt_bin}:#{path_env}" if OS.linux?
19+
20+
(bin/"kill-port").write_env_script libexec/"index.js", PATH => path_env
21+
bin.install_symlink "kill-port" => "k-p"
22+
bin.install_symlink "kill-port" => "k"
23+
end
24+
25+
test do
26+
assert_match "Usage: kill-port <port1> [<port2> ...]",
27+
shell_output("#{bin}/kill-port 2>&1", 1)
28+
end
29+
end

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,20 @@ npm install kill-port-process-cli
1111
```bash
1212
npm install -g kill-port-process-cli
1313
```
14+
## Homebrew Install
15+
Use this repository as a custom tap:
16+
17+
```bash
18+
brew tap luckfunc/kill-port-process-cli https://github.com/luckfunc/kill-port-process-cli --custom-remote
19+
brew install luckfunc/kill-port-process-cli/kill-port-process-cli
20+
```
21+
22+
If you want a cleaner long-term Homebrew experience later, move the same formula to a dedicated tap repository such as `luckfunc/homebrew-tap`, then users can install it with:
23+
24+
```bash
25+
brew tap luckfunc/tap
26+
brew install kill-port-process-cli
27+
```
1428
### Usage
1529
You can use the tool by running the `k` or `k-p` or `kill-port` command followed by one or more port numbers.
1630
### Recommended Command

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
{
22
"name": "kill-port-process-cli",
3-
"version": "1.0.13",
3+
"version": "1.0.14",
44
"description": "A CLI tool to kill processes by port",
55
"main": "index.js",
6+
"files": [
7+
"index.js",
8+
"README.md",
9+
"LICENSE"
10+
],
611
"bin": {
712
"kill-port": "./index.js",
813
"k-p": "./index.js",

0 commit comments

Comments
 (0)