chromium/ash/webui/recorder_app_ui/resources/scripts/cra.py

#!/usr/bin/env python3
# Copyright 2024 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Development script for ChromeOS Recorder App (CRA, codename conch).

This tool bundles several scripts that are used for development only. See
`cra.py --help` for a list of commands.

Note that this should never be executed by any .gn file / by the real build
process of Chrome.
"""

import sys
from typing import Optional

from cra.commands import main as main_cmd


def main(argv: Optional[list[str]] = None) -> Optional[int]:
    return main_cmd.cmd.run(argv)


if __name__ == "__main__":
    sys.exit(main(sys.argv[1:]))