Custom written CLI tools for interfacing with a paginated API endpoint.
It consists of four binaries:
templcat
-build output using the go template enginelasercat
- pluci items from JSON inputprettycat
- pretty format JSONapicat
- run JSON input against an API endpoint, incrementing the input to get all pages
-
If you have not, install go.
-
Get the source
go get github.com/JackKnifed/cliTricks
- Compile each binary
go install github.com/JackKnifed/cliTricks/templcat
go install github.com/JackKnifed/cliTricks/lasercat
go install github.com/JackKnifed/cliTricks/prettycat
go install github.com/JackKnifed/cliTricks/apicat
- You should now be able to find all of the binaries at
$GOPATH/bin
There are no unit tests or similar written for this - at least for the most part. THe binaries are provided as is, without proper testing.
This project is a hack, but it works.