Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cliutils

A small command-line tool for expanding abbreviated host strings into full hostname lists.

cliutils hosts "host[1..2]"
host1
host2

Prerequisites

  • git, make, and curl (preinstalled on most dev machines; on Debian/Ubuntu: sudo apt-get install -y git make curl)
  • Go 1.26 — installed via mise below, or bring your own.

Setup

This project pins its Go version with mise. Install mise if you don't have it:

curl https://mise.run | sh

Activate it in your shell so the pinned go lands on your PATH, then reload:

echo 'eval "$(mise activate bash)"' >> ~/.bashrc   # or ~/.zshrc, with "zsh"
exec $SHELL

Install the pinned Go toolchain from mise.toml:

mise install

(Prefer not to use mise? Install Go 1.26 yourself and skip these steps.)

Verify your setup

From the repo root, this should pass with no errors:

make

You're ready when it prints ok for the tests and produces ./build/cliutils.

Build & run

make build
./build/cliutils hosts "web[1..3]"

Development

make test    # run tests
make lint    # gofmt check + go vet
make fmt     # format sources
make         # lint, test, build

The core expansion logic lives in hostexpansion/.

About

A simple app for entry level engineers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages