Skip to content

xhd2015/kool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

157 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kool

The tool that does more with less.

Install

curl (recommended):

curl -fsSL https://github.com/xhd2015/kool/raw/master/install.sh | bash

via script/install:

go run github.com/xhd2015/kool/script/install@latest

Plain go install (no web ability):

# for go1.20 and later
go install github.com/xhd2015/kool@latest

# for go1.19 and below
go run github.com/xhd2015/kool/cmd/kool-with-go1.24@latest go install github.com/xhd2015/kool@latest

Usage

Kool commands are splited into the following categories:

  • string
  • json
  • git
  • go
  • net
  • others

string

# uniq lines
pbpaste | kool lines uniq

json

pbpaste | kool compress
pbpaste | kool pretty 

go

Debug helper:

# automatically spawn a dlv process
kool go run --debug ./

Version helper:

# run with specific version
kool with-go1.22 go run ./

git

# tag HEAD with next version, and push
kool git tag-next --push

# show HEAD's version
kool git show-tag

net

# kill the porcess that listens on 8080
kool kill-port 8080

About

Do more with less input, just kool

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors