matano icon indicating copy to clipboard operation
matano copied to clipboard

CLI throws an error if there is no detections dir

Open timoguin opened this issue 1 year ago • 1 comments

Problem

If the Matano CLI doesn't find a detections/ dir, it throws an error:

$ matano diff --user-directory ./config/envs/my-env
 ›   Error: ENOENT: no such file or directory, scandir '/my-homedir/my-repo-path/config/envs/my-env/detections'
exit status 1

Solution

If there is no detections/ dir, the CLI should no-op instead of throwing an error.

timoguin avatar Feb 13 '23 22:02 timoguin