fix prompt with name args (#80)

This commit is contained in:
Xi Yan 2024-09-18 23:48:31 -07:00
parent b059889d60
commit ef0e717bd0

View file

@ -191,7 +191,13 @@ class StackBuild(Subcommand):
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(