mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 19:04:19 +00:00
fix prompt with name args (#80)
This commit is contained in:
parent
c63d6cbd08
commit
6302a1ee90
1 changed files with 7 additions and 1 deletions
|
@ -191,7 +191,13 @@ class StackBuild(Subcommand):
|
||||||
return
|
return
|
||||||
|
|
||||||
if not args.config and not args.template:
|
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(
|
image_type = prompt(
|
||||||
"> Enter the image type you want your Llama Stack to be built as (docker or conda): ",
|
"> Enter the image type you want your Llama Stack to be built as (docker or conda): ",
|
||||||
validator=Validator.from_callable(
|
validator=Validator.from_callable(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue