aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/maturin_template/__main__.py
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2025-11-06 11:11:38 +0800
committerGitHub <noreply@github.com>2025-11-06 11:11:38 +0800
commit3d4081897e267c7fae5f11a7dd55826574e6941b (patch)
tree72c84770cf2313f1632600c2d2e63f9c576cc07b /maturin_template/__main__.py
downloadmvp-3d4081897e267c7fae5f11a7dd55826574e6941b.tar.gz
mvp-3d4081897e267c7fae5f11a7dd55826574e6941b.zip
Initial commit
Diffstat (limited to 'maturin_template/__main__.py')
-rw-r--r--maturin_template/__main__.py18
1 files changed, 18 insertions, 0 deletions
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