coguardio / coguard-cli

The CoGuard CLI Tool
MIT License
92 stars 9 forks source link

Can we pipeline into the toolkit? #20

Closed julianm-lrj closed 2 years ago

julianm-lrj commented 2 years ago

eg.

** docker images | grep | coguard ^Scans all images listed^

** docker build | coguard ^Scans image built^

ioah86 commented 2 years ago

I am not planning right now to take inputs via stdin. To achieve having pipeline arguments as arguments for the code, one can use xargs. An example use that worked for me locally:

docker image ls | grep mysql | awk '{print $1}' | xargs -n 1 coguard docker-image