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
eg.
** docker images | grep | coguard
^Scans all images listed^
** docker build | coguard
^Scans image built^