Skip to content
cleissonomPublic

About

A repository to store all my CLI tools.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Repository files navigation

CLI Tools Collection

A multi-language set of focused command-line tools for everyday workflows.

Tools

Tool Language What it does Build Test
imgconvert Rust Converts images to a target format with safe output-path validation. cd imgconvert && make build cd imgconvert && make test
imgcrop Rust Crops images to exact dimensions with optional proportion/framing controls. cd imgcrop && make build cd imgcrop && make test
pypaste Rust Compacts Python scripts for terminal pasting and copies output to clipboard. cd pypaste && make build cd pypaste && make test
raw_http C (libcurl) Sends raw HTTP requests from .txt files and prints/saves full responses. cd raw_http && make build cd raw_http && make test
workpay C (libcurl) Calculates earnings from worked time and converts currencies via AwesomeAPI. cd workpay && make build N/A (no test target in Makefile)

Detailed per-tool docs:

Prerequisites

macOS

  • Xcode Command Line Tools (clang, make, install)
  • curl, tar
  • Rust toolchain (cargo, rustc) for Rust tools (imgconvert, imgcrop, pypaste)

Quick setup with Homebrew:

brew install rust

C dependencies

  • raw_http and workpay are linked with libcurl.
  • On macOS, libcurl is typically available through system toolchains.

Build and Test

Use the repository scripts from the repository root:

./.scripts/build_all.sh
./.scripts/test_all.sh

Install built binaries from a local clone:

./.scripts/add_to_local.sh -y "$HOME/.local/bin/"

Public macOS install (no clone)

Use the installer script directly from GitHub:

curl -fsSL https://raw.githubusercontent.com/cleissonom/cli_tools/main/install-macos.sh | \
  bash -s -- -y

Install only selected tools into a user-local bin directory:

curl -fsSL https://raw.githubusercontent.com/cleissonom/cli_tools/main/install-macos.sh | \
  bash -s -- -y --tools imgcrop,pypaste

Installer behavior:

  • Downloads a tarball from GitHub (no git clone required)
  • Builds selected tools through ./.scripts/build_all.sh
  • Installs binaries to --prefix (default: /usr/local/bin)
  • Uses sudo only when destination requires elevated permissions

Installer help:

bash install-macos.sh --help

Quick Usage

imgconvert:

imgconvert ./photo.jpg webp ./out/photo.webp

imgcrop:

imgcrop ./photo.jpg --size 800x600

pypaste:

pypaste --stdout ./script.py

raw_http:

raw_http raw_http/example.txt

workpay:

workpay --from USD --to BRL 25 08:30:45

Repository Layout

.
├── .scripts/      # helper scripts (test orchestration and local install utilities)
├── imgconvert/    # Rust image converter
├── imgcrop/       # Rust image cropper with framing controls
├── pypaste/       # Rust python compactor + clipboard integration
├── raw_http/      # C raw HTTP request sender using libcurl
└── workpay/       # C earnings + currency conversion CLI

License

Apache License 2.0. See LICENSE.

About

A repository to store all my CLI tools.

Topics

Resources

Stars

4 stars

Watchers

1 watching

Forks

Contributors

Languages