Skip to content

Commit

Permalink
fix prompt with name args (meta-llama#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxi0830 committed Sep 19, 2024
1 parent c63d6cb commit 6302a1e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion llama_stack/cli/stack/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,13 @@ def _run_stack_build_command(self, args: argparse.Namespace) -> None:
return

if not args.config and not args.template:
name = prompt("> Enter a name for your Llama Stack (e.g. my-local-stack): ")
if not args.name:
name = prompt(
"> Enter a name for your Llama Stack (e.g. my-local-stack): "
)
else:
name = args.name

image_type = prompt(
"> Enter the image type you want your Llama Stack to be built as (docker or conda): ",
validator=Validator.from_callable(
Expand Down

0 comments on commit 6302a1e

Please sign in to comment.