Skip to content
/ gkp Public

GKP(Go Kill Port) is a small simple CLI tool used for killing processes on a port. This is mainly done for learning purposes.

Notifications You must be signed in to change notification settings

ctfrancia/gkp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gkp

Summary

gkp(Go Kill Process) is aimed to be a simple cli for different OS that will kill a process running on a port so you don't need to google: 'kill process running on port linux/mac/windows" Instead type gkp 3000 3001 and the port will be closed

Installation

TODO: write documentation for this

Flags

  • -p: port(s) that is desired to kill ex $ gkp -p "3000 3002 4000" or $ gkp -p "3000" for one port
  • -r: range of ports ex a $ gkp -r "3000 3005"

DISCLAIMER

This is a learning project. While you can use it on your own machine I do not hold any responsibility. This disclaimer will go away after some time and been audited by someone much more competent than my self that nothing serious will happen.

TODO

  • clean up main.go for better legibility
  • move flag checker into dedicated module linked to todo above
  • check for if both flags are presented, should not allow
  • Terminate multiple ports with the -p flag
  • Terminate range of flags with -r flag
  • Better flag checking if -p or -r is provided rather than based on len() of args...
  • Run process based on flag provided, right now it's mixed (SOC issue)

License

MIT

About

GKP(Go Kill Port) is a small simple CLI tool used for killing processes on a port. This is mainly done for learning purposes.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages