Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colstr

Simple command line utility to colorize strings based on delimiters contained within them

ci downloads version license

Installation

Install via Homebrew (currently macOS only):

brew install jamieweavis/tap/colstr

Usage

By default colstr will colorize a string based on the following delimiters . / ? = & # :

URL

colstr 'https://github.com/jamieweavis/colstr?hello=world#test'

URL

JWT

colstr 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJoZWxsbyI6IndvcmxkIn0.eH9qoMvdv12LsZ3Og_K20no8uiBQFuJg6k6A7O8l06U'

JWT

Custom Delimiters

You can specify custom delimiters by passing a second argument to colstr

UUIDs

colstr '123e4567-e89b-12d3-a456-426614174000' '-'

UUID

Other

colstr 'foo$bar%baz' '$%'

Custom

Help

Print usage and package information:

colstr

Help

Development

Prerequisites

  • Go (>=1.24.x)

Getting Started

Clone the repository:

git clone https://github.com/jamieweavis/colstr.git

cd colstr

Run the application:

make run

Compile the application binary:

make build

Package the binary into a tar.gz archive:

make package

Print the check-sum of the packaged application:

make checksum

Delete build artifacts:

make clean

About

Simple command line utility to colorize strings based on delimiters contained within them

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages