blob: f744c5bd30a63667388e730a3b77c4cfa3a2a107 [file] [log] [blame]
Nicholas Bishop82a3feb2021-06-23 13:18:18 -04001#!/usr/bin/env python3
2# pylint: disable=missing-docstring
3
4import os
5import subprocess
6import sys
7
8
9def main():
10 repo_dir = os.path.dirname(os.path.realpath(__file__))
Nicholas Bishop2147fa82021-06-23 14:27:33 -040011 tools_manifest = os.path.join(repo_dir, 'tools/Cargo.toml')
Nicholas Bishop82a3feb2021-06-23 13:18:18 -040012
Nicholas Bishop2147fa82021-06-23 14:27:33 -040013 cmd = ['cargo', 'run', '--quiet', '--manifest-path', tools_manifest, '--']
Nicholas Bishop82a3feb2021-06-23 13:18:18 -040014 cmd += ['--repo', repo_dir]
15 cmd += sys.argv[1:]
16
Nicholas Bishop2147fa82021-06-23 14:27:33 -040017 subprocess.run(cmd, check=True)
Nicholas Bishop82a3feb2021-06-23 13:18:18 -040018
19
20if __name__ == '__main__':
21 main()