trefoil-cli 0.8.0__tar.gz → 0.9.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/PKG-INFO +1 -1
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/package.py +8 -2
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/pyproject.toml +1 -1
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/trefoil_cli.egg-info/PKG-INFO +1 -1
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/setup.cfg +0 -0
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/trefoil_cli.egg-info/SOURCES.txt +0 -0
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/trefoil_cli.egg-info/dependency_links.txt +0 -0
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/trefoil_cli.egg-info/entry_points.txt +0 -0
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/trefoil_cli.egg-info/requires.txt +0 -0
- {trefoil_cli-0.8.0 → trefoil_cli-0.9.0}/trefoil_cli.egg-info/top_level.txt +0 -0
|
@@ -53,7 +53,7 @@ import yaml
|
|
|
53
53
|
|
|
54
54
|
DEFAULT_SERVER = "http://localhost:8080"
|
|
55
55
|
EXAMPLES_API = "https://api.github.com/repos/alto-se/trefoil/contents/examples"
|
|
56
|
-
|
|
56
|
+
ENGINE_REPO = "ghcr.io/alto-se/trefoil-api"
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
class Ref:
|
|
@@ -722,6 +722,12 @@ def cli_version():
|
|
|
722
722
|
return "unknown"
|
|
723
723
|
|
|
724
724
|
|
|
725
|
+
def engine_image():
|
|
726
|
+
"""The API image released with this CLI (same version), or :latest when unknown."""
|
|
727
|
+
version = cli_version()
|
|
728
|
+
return f"{ENGINE_REPO}:{'latest' if version == 'unknown' else version}"
|
|
729
|
+
|
|
730
|
+
|
|
725
731
|
def main():
|
|
726
732
|
parser = argparse.ArgumentParser(prog="trefoil", description="trefoil <domain> <command> [args]")
|
|
727
733
|
parser.add_argument("--version", action="version", version=f"%(prog)s {cli_version()}")
|
|
@@ -761,7 +767,7 @@ def main():
|
|
|
761
767
|
engine_start.add_argument("--aws-region", metavar="REGION",
|
|
762
768
|
help="AWS region for bedrock (default: $AWS_REGION or the profile's region)")
|
|
763
769
|
engine_start.add_argument("--port", type=int, default=8080, help="host port to publish (default: 8080)")
|
|
764
|
-
engine_start.add_argument("--image", default=
|
|
770
|
+
engine_start.add_argument("--image", default=engine_image(), help=f"API image (default: {engine_image()})")
|
|
765
771
|
engine_start.add_argument("--name", default="trefoil-api", help="container name (default: trefoil-api)")
|
|
766
772
|
engine_start.add_argument("--volume", default="trefoil-data",
|
|
767
773
|
help="docker volume (or host path) for the data dir (default: trefoil-data)")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|