aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/maturin_template/__main__.py
diff options
context:
space:
mode:
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