diff options
Diffstat (limited to 'maturin_template/__main__.py')
| -rw-r--r-- | maturin_template/__main__.py | 18 |
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 |
