hlts2 / ctxt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ctxt

ctxt is a simple CLI tool for categorizing text.

This tool aims to categorize the content to be described in the CHANGELOG.

Install

go install github.com/hlts2/ctxt/cmd/ctxt

Usage

$ ctxt --help
Categorize text

Usage:
  ctxt [flags]

Flags:
  -f, --file string                 set file path
  -h, --help                        help for ctxt
  -i, --index uint                  set which element of the separation are to be used
  -s, --sep string                  set line separator
      --uncategorized-name string   set uncategorized name (default "others")
  -v, --version                     version for ctxt

Example

The following is an example to integrate with git log command.

 git log --pretty=format:"- %s" v0.0.1..main | ctxt --sep=" " --index=1

About

License:MIT License


Languages

Language:Go 100.0%