A CLI which returns the median of given numbers
<name>
Required[name]
Optional<names[]>
Required array[names[]]
Optional array./program[.exe]
Optional file extension (based on OS)
git clone https://github.com/thestevexyz/median-cli.git
or download repository- Change directory to repository
go build -ldflags "-s -w" -trimpath .
- Run CLI with
./median-cli[.exe] <numbers[]>
go test
Only Linux (Ubuntu 20.04, Debian 10) and Windows 10 are officially supported. However, other builds are also possible, but not officially supported.
A bash script build-executables.bash
is provided to build for multiple OS's and Architectures.
Usage: ./build-executeables.bash main.go median-cli