The preferred method is installation via Homebrew.
brew install salsadigitalauorg/shipshape/shipshape
curl -L -o shipshape https://github.com/salsadigitalauorg/shipshape/releases/latest/download/shipshape-$(uname -s)-$(uname -m)
chmod +x shipshape
mv shipshape /usr/local/bin/shipshape
Run directly from a docker image:
docker run --rm ghcr.io/salsadigitalauorg/shipshape:latest shipshape --version
Or add to your docker image:
COPY --from=ghcr.io/salsadigitalauorg/shipshape:latest /usr/local/bin/shipshape /usr/local/bin/shipshape
Check out our documentation at https://salsadigitalauorg.github.io/shipshape/.
git clone git@github.com:salsadigitalauorg/shipshape.git && cd shipshape
go generate ./...
go build -ldflags="-s -w" -o build/shipshape .
go run . -h
go generate ./...
go test -v ./... -coverprofile=build/coverage.out
View coverage results:
go tool cover -html=build/coverage.out
cd docs
npm install
npm run dev