Simple command line utility to colorize strings based on delimiters contained within them
Install via Homebrew (currently macOS only):
brew install jamieweavis/tap/colstrBy default colstr will colorize a string based on the following delimiters . / ? = & # :
colstr 'https://github.com/jamieweavis/colstr?hello=world#test'colstr 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJoZWxsbyI6IndvcmxkIn0.eH9qoMvdv12LsZ3Og_K20no8uiBQFuJg6k6A7O8l06U'You can specify custom delimiters by passing a second argument to colstr
colstr '123e4567-e89b-12d3-a456-426614174000' '-'colstr 'foo$bar%baz' '$%'Print usage and package information:
colstr- Go (>=1.24.x)
Clone the repository:
git clone https://github.com/jamieweavis/colstr.git
cd colstrRun the application:
make runCompile the application binary:
make buildPackage the binary into a tar.gz archive:
make packagePrint the check-sum of the packaged application:
make checksumDelete build artifacts:
make clean