๐Ÿ“ฆ veggiemonk / gcp-workflows-cue

๐Ÿ“„ cue_vet.sh ยท 18 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#!/bin/bash


[[ ! -d "workflows-samples" ]] && git clone --depth 1 https://github.com/GoogleCloudPlatform/workflows-samples.git

command -v foo >/dev/null 2>&1 || { 
    echo
    echo >&2 "CUE required but not installed.  Aborting."; 
    echo >&2 "to install CUE:";
    echo >&2 "    brew install cue-lang/tap/cue";
    echo >&2 " OR ";
    echo >&2 "go install cuelang.org/go/cmd/cue@latest";
    echo
    exit 1; 
    }

cue vet -v -c workflows-samples/src/*.workflows.yaml workflows.cue -d '#WorkflowSpec'