Fixes to llama stack commands and update docs

This commit is contained in:
Ashwin Bharambe 2024-09-02 18:58:54 -07:00
parent 5927f3c3c0
commit 279565499b
4 changed files with 22 additions and 21 deletions

View file

@ -44,13 +44,13 @@ class StackConfigure(Subcommand):
help="Distribution (one of: {})".format(allowed_ids),
)
self.parser.add_argument(
"--build-name",
"--name",
type=str,
help="Name of the build",
required=True,
)
self.parser.add_argument(
"--build-type",
"--type",
type=str,
default="conda_env",
choices=[v.value for v in BuildType],
@ -59,8 +59,8 @@ class StackConfigure(Subcommand):
def _run_stack_configure_cmd(self, args: argparse.Namespace) -> None:
from llama_toolchain.core.package import BuildType
build_type = BuildType(args.build_type)
name = args.build_name
build_type = BuildType(args.type)
name = args.name
config_file = (
BUILDS_BASE_DIR
/ args.distribution