summaryrefslogtreecommitdiffstats
path: root/src/ansiblelint/schemas/__main__.py
blob: 301de7db77c6e8dca8ce7af65105a0523e3c7e41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""Module containing cached JSON schemas."""
import sys

from ansiblelint.schemas.main import refresh_schemas

if __name__ == "__main__":
    if refresh_schemas():  # pragma: no cover
        # flake8: noqa: T201
        print("Schemas were updated.")
        sys.exit(1)
    else:  # pragma: no cover
        # flake8: noqa: T201
        print("Schemas not updated", 0)