summaryrefslogtreecommitdiffstats
path: root/testing/gen-languages-all
diff options
context:
space:
mode:
Diffstat (limited to 'testing/gen-languages-all')
-rwxr-xr-xtesting/gen-languages-all30
1 files changed, 0 insertions, 30 deletions
diff --git a/testing/gen-languages-all b/testing/gen-languages-all
deleted file mode 100755
index 05f8929..0000000
--- a/testing/gen-languages-all
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env python3
-from __future__ import annotations
-
-import sys
-
-LANGUAGES = (
- 'conda', 'coursier', 'dart', 'docker', 'docker_image', 'dotnet', 'fail',
- 'golang', 'lua', 'node', 'perl', 'pygrep', 'python', 'r', 'ruby', 'rust',
- 'script', 'swift', 'system',
-)
-FIELDS = (
- 'ENVIRONMENT_DIR', 'get_default_version', 'health_check',
- 'install_environment', 'run_hook',
-)
-
-
-def main() -> int:
- print(f' # BEGIN GENERATED ({sys.argv[0]})')
- for lang in LANGUAGES:
- parts = [f' {lang!r}: Language(name={lang!r}']
- for k in FIELDS:
- parts.append(f', {k}={lang}.{k}')
- parts.append('), # noqa: E501')
- print(''.join(parts))
- print(' # END GENERATED')
- return 0
-
-
-if __name__ == '__main__':
- raise SystemExit(main())