From 3d4081897e267c7fae5f11a7dd55826574e6941b Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Thu, 6 Nov 2025 11:11:38 +0800 Subject: Initial commit --- maturin_template/__main__.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 maturin_template/__main__.py (limited to 'maturin_template/__main__.py') diff --git a/maturin_template/__main__.py b/maturin_template/__main__.py new file mode 100644 index 0000000..02df57d --- /dev/null +++ b/maturin_template/__main__.py @@ -0,0 +1,18 @@ +import subprocess +import sys + +def run_cli(*args): + result = subprocess.run( + ["maturin_template", *args], + capture_output=True, + text=True + ) + return result.stdout + +def main(): + args = sys.argv[1:] + print(run_cli(*args)) + return 0 + +if __name__ == "__main__": + sys.exit(main()) \ No newline at end of file -- cgit v1.2.3-70-g09d2