add example of validate_cmd on directory