open-nomad/nomad/structs/generate.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
288 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2018-04-26 17:22:45 +00:00
set -e
FILES="$(ls ./*.go | grep -v -e _test.go -e .generated.go | tr '\n' ' ')"
codecgen \
-c github.com/hashicorp/go-msgpack/codec \
-st codec \
-d 100 \
-t codegen_generated \
-o structs.generated.go \
-nr="^IdentityClaims$" \
${FILES}