open-nomad/nomad/structs/generate.sh
Yoan Blanc 5ca31f23e5
structs: give codecgen import
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-04-28 08:23:20 +02:00

11 lines
235 B
Bash
Executable file

#!/bin/bash
set -e
FILES="$(ls ./*.go | grep -v -e _test.go -e .generated.go | tr '\n' ' ')"
codecgen \
-c github.com/hashicorp/go-msgpack/codec \
-d 100 \
-t codegen_generated \
-o structs.generated.go \
${FILES}