Spaces:
Sleeping
Sleeping
--global
commited on
Commit
•
3876e75
1
Parent(s):
98182b3
Added click and install
Browse files- pysr/__main__.py +4 -0
- pysr/_cli/__init__.py +0 -0
- pysr/_cli/main.py +16 -0
pysr/__main__.py
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from pysr._cli.main import cli as _cli
|
2 |
+
|
3 |
+
if __name__ == '__main__':
|
4 |
+
_cli(prog_name="cli")
|
pysr/_cli/__init__.py
ADDED
File without changes
|
pysr/_cli/main.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import click
|
2 |
+
from pysr.julia_helpers import install
|
3 |
+
|
4 |
+
|
5 |
+
@click.group("cli")
|
6 |
+
@click.pass_context
|
7 |
+
def cli():
|
8 |
+
somevariable = "33"
|
9 |
+
|
10 |
+
|
11 |
+
@cli.command("install")
|
12 |
+
@click.option("--julia_project", default=None)
|
13 |
+
@click.option("--quiet", default=False)
|
14 |
+
@click.option("--precompile", default=None)
|
15 |
+
def _install(julia_project, quiet, precompile):
|
16 |
+
install(julia_project, quiet, precompile)
|