Skip to content

CLI throws an error if there is no detections dir #87

@timoguin

Description

@timoguin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions