[CLI] avoid configure twice (#171)

* avoid configure twice

* cleanup tmp config

* update output msg

* address comment

* update msg

* script update
This commit is contained in:
Xi Yan 2024-10-03 11:20:54 -07:00 committed by GitHub
parent 06db9213b1
commit 62d266f018
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 23 additions and 9 deletions

View file

@ -137,10 +137,16 @@ class StackBuild(Subcommand):
if build_config.image_type == "conda"
else (f"llamastack-{build_config.name}")
)
cprint(
f"You can now run `llama stack configure {configure_name}`",
color="green",
)
if build_config.image_type == "conda":
cprint(
f"You can now run `llama stack configure {configure_name}`",
color="green",
)
else:
cprint(
f"You can now run `llama stack run {build_config.name}`",
color="green",
)
def _run_template_list_cmd(self, args: argparse.Namespace) -> None:
import json