Derive the Bazel repo name from a CDDL filename. ``at-driver-all.cddl`` -> ``at_driver_all_cddl``
(filename)
| 93 | |
| 94 | |
| 95 | def repo_name(filename): |
| 96 | """Derive the Bazel repo name from a CDDL filename. |
| 97 | |
| 98 | ``at-driver-all.cddl`` -> ``at_driver_all_cddl`` |
| 99 | """ |
| 100 | return filename[: -len(".cddl")].replace("-", "_") + "_cddl" |
| 101 | |
| 102 | |
| 103 | def sha256_of_url(url): |