jkfran / killport

A command-line tool to easily kill processes running on a specified port.
MIT License
1.68k stars 37 forks source link

Why not bash? #16

Closed webgtx closed 1 year ago

webgtx commented 1 year ago

No offense, just curious why not. You literally need 3 pipes in shell with commands like:

gorshunovr commented 1 year ago

One is enough: lsof -t -i:8080 | xargs kill -9

jkfran commented 1 year ago

I appreciate the feedback. I know for some people this tool might look unnecessary. But I think anyone doing this operation on a daily basis sees value in it.

The purpose of killport is to provide a simple, cross-platform, and user-friendly alternative. By wrapping the functionality into a single command, killport aims to make the process quicker and easier for users who may not be as familiar with shell commands or prefer a more streamlined approach.

Killport is built with Rust and doesn't need extra dependencies. It can be particularly useful in minimalistic environments like tiny containers or embedded systems, where every bit of storage and resource usage matters and having a lightweight, single-purpose utility can be more efficient than installing multiple tools.

But as I said before, it's up to the people to use it or not. I'm always open to suggestions for improvement. Closing the issue for now.