kool

command module
v0.0.101 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 32 Imported by: 0

README

Kool

The tool that does more with less.

Install

Plain go install:

# 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

curl from github:

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

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkgs
web
script
build-release command
gen-kool command
git-hooks command
tools
ai
cmd
dlv
fs
git
git/git_check_merge
Package git_check_merge provides functionality to check if git references are merged into the current HEAD.
Package git_check_merge provides functionality to check if git references are merged into the current HEAD.
git/git_show_exclude
Package git_show_exclude provides functionality to show the path to .git/info/exclude file in a git repository, with special handling for worktree setups and paths with multiple parent directory references.
Package git_show_exclude provides functionality to show the path to .git/info/exclude file in a git repository, with special handling for worktree setups and paths with multiple parent directory references.
go
js
rules
Package rules provides functionality for managing Cursor rule files.
Package rules provides functionality for managing Cursor rule files.
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL