utils

module
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT

README

utils

A collection of small CLI utilities written in Go.

Why

Go's tool chain is the ideal way to maintain a set of commonly used CLI utilities. They can be quickly compiled and installed whether you're in Windows, macOS, or Linux. This provides a unified and portable solution to many a scripting needs. With this setup, Go turns into a quasi-package manager for these utilities.

Utilities

  • bak: Create dated backups of files or directories.
  • brew-update: Update, upgrade, and clean up Homebrew packages.
  • cash5: Analyze historical Cash5 draws and generate number recommendations.
  • certgen: Generate self-signed TLS certificates for local testing.
  • certls: Show SSL/TLS certificate details for a host and port.
  • days: A CLI calendar days calculator.
  • decolor: A utility that removes shell color escape codes from input stream or given file.
  • dl: Download online videos using yt-dlp with a target filename.
  • dos2unix: Preview or convert CRLF line endings to LF.
  • fr: A simple find/replace utility.
  • git-cloneall: Clone all repositories from a GitHub user or organization.
  • git-pullall: Pull updates across all local Git repositories in a directory.
  • git-remotev: Print each local repository with its origin remote URL.
  • git-statall: Show git status across local repositories.
  • jy: A lightweight JSON and YAML converter utility.
  • moneycon: Financial data consolidation — reads CSV or aligned text, outputs aligned summary with totals.
  • pgen: A simple generator of memorable passwords.
  • pman: Run authenticated Microsoft Graph and Azure REST API requests.
  • rn: A bulk file re-namer.
  • rncap: Rename files by capitalizing each word in filenames.
  • rnlower: Rename files by converting filenames to lowercase.
  • sms: Send SMS messages using Twilio credentials from a local config file.
  • tree: A lightweight directory tree printing utility.
  • web: Search DuckDuckGo and open results with an interactive selector.

Quick Install

With Go installed, install all utilities at once:

go install github.com/queone/utils/cmd/...@latest

Or install a single utility:

go install github.com/queone/utils/cmd/fr@latest

Binaries are placed in $GOPATH/bin (typically ~/go/bin), which should be in your $PATH.

Getting Started

To compile the entire collection, you obviously need to have GoLang installed and properly setup in your system, with $GOPATH set up correctly (typically at $HOME/go). Also setup $GOPATH/bin/ in your $PATH, since that is where all executable binaries will be placed.

To compile for the first time do:

git clone https://github.com/queone/utils
cd utils
go mod init utils
go mod tidy
./build.sh

For subsequent compilation just:

cd utils
git pull
./build.sh

Note that you can compile individual utilities with ./build.sh rn,web, etc.

To build in Windows you have to have a BASH shell such as GitBASH. To build from a regular Windows Command Prompt, you may have to tweak the build.sh script a bit, to have it run the right go build ... command.

Directories

Path Synopsis
cmd
bak command
brew-update command
build command
build is based on an original build.sh Bash script from the source project that inspired this template.
build is based on an original build.sh Bash script from the source project that inspired this template.
cash5 command
certgen command
certls command
days command
decolor command
dl command
dos2unix command
fr command
git-cloneall command
git-pullall command
git-remotev command
git-statall command
jy command
moneycon command
pgen command
pman command
prep command
rel command
CODE-flavor library wrapper.
CODE-flavor library wrapper.
rn command
rncap command
rnlower command
sms command
tree command
web command
internal
preptool
Package preptool stages a release: bumps version constants, inserts a CHANGELOG row, deletes completed AC files, sweeps matching AC-pointer IE lines from plan.md, runs validation builds around the write phases, and prints the canonical release command.
Package preptool stages a release: bumps version constants, inserts a CHANGELOG row, deletes completed AC files, sweeps matching AC-pointer IE lines from plan.md, runs validation builds around the write phases, and prints the canonical release command.

Jump to

Keyboard shortcuts

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