Skip to content

valksor/go-wrappi

Valksor Wrappi

valksor BSD-3-Clause GitHub Release GitHub last commit

Go Report Card GitHub go.mod Go version


wrappi is a command wrapper manager — create persistent command configurations with preconfigured arguments and environment variables.


Why

Complex commands with many flags and environment variables are tedious to type repeatedly. Shell aliases help but don't handle environment variables cleanly. wrappi lets you define a command once and run it with a simple name.


Quick Start

# Create a wrapper
wrappi init api-dev --env DEBUG=1 --env API_KEY --arg --verbose ./api-server

# Run it
wrappi api-dev

# Pass additional args
wrappi api-dev --port 8080

Features

Feature Description
Literal env vars --env KEY=value — stored securely in .env files
Passthrough env vars --env KEY — checked at runtime, errors if missing
Default arguments --arg — always prepended to your command
Path expansion ~ expands to home directory in env values
Process replacement Uses syscall.Exec for proper signal handling

Install

Install Script (Recommended)

curl -fsSL https://raw.githubusercontent.com/valksor/go-wrappi/master/install.sh | bash

The script auto-detects your OS and architecture, verifies checksums, and installs to ~/.local/bin.

Pre-built Binary

# macOS Apple Silicon example
curl -L https://github.com/valksor/go-wrappi/releases/latest/download/wrappi-darwin-arm64 -o wrappi
chmod +x wrappi
sudo mv wrappi /usr/local/bin/
Platform Binary
macOS Intel wrappi-darwin-amd64
macOS Apple Silicon wrappi-darwin-arm64
Linux AMD64 wrappi-linux-amd64
Linux ARM64 wrappi-linux-arm64

From Source

git clone https://github.com/valksor/go-wrappi
cd go-wrappi
make install

Commands

Command Description
wrappi init <name> <binary> Create a new wrapper
wrappi <name> [args...] Run a wrapper
wrappi list List all wrappers
wrappi show <name> Show wrapper configuration
wrappi edit <name> Edit wrapper in $EDITOR
wrappi remove <name> Remove a wrapper

Documentation

Full documentation: valksor.com/docs/wrappi/nightly


License

BSD-3-Clause — see LICENSE for details.


Created by Valksor

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors