mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-28 10:54:19 +00:00
* remove configure from build * remove config from build * configure to regenerate file * update memory providers * remove comments * udpate build script * add reedme * update doc * rename getting started * update build cli * update docker build script * configure update * clean up configure * [tmp fix] hardware requirement tmp fix * clean up build * fix configure * add example build files for conda & docker * remove resolve_distribution_spec * remove available_distribution_specs * example build files * update example build files * more clean up on build * add name args to override name * move distribution to yaml files * generate distribution specs * getting started guide * getting started * add build yaml to Dockerfile * cleanup distribution_dependencies * configure from docker image name * build relative paths * minor comment * getting started * Update getting_started.md * Update getting_started.md * address comments, configure within docker file * remove distribution types! * update getting started * update documentation * remove listing distribution * minor heading * address nits, remove docker_image=null * gitignore
34 lines
1 KiB
Python
34 lines
1 KiB
Python
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the terms described in the LICENSE file in
|
|
# the root directory of this source tree.
|
|
|
|
import argparse
|
|
|
|
from llama_toolchain.cli.subcommand import Subcommand
|
|
|
|
from .build import StackBuild
|
|
from .configure import StackConfigure
|
|
from .list_apis import StackListApis
|
|
from .list_providers import StackListProviders
|
|
from .run import StackRun
|
|
|
|
|
|
class StackParser(Subcommand):
|
|
def __init__(self, subparsers: argparse._SubParsersAction):
|
|
super().__init__()
|
|
self.parser = subparsers.add_parser(
|
|
"stack",
|
|
prog="llama stack",
|
|
description="Operations for the Llama Stack / Distributions",
|
|
)
|
|
|
|
subparsers = self.parser.add_subparsers(title="stack_subcommands")
|
|
|
|
# Add sub-commands
|
|
StackBuild.create(subparsers)
|
|
StackConfigure.create(subparsers)
|
|
StackListApis.create(subparsers)
|
|
StackListProviders.create(subparsers)
|
|
StackRun.create(subparsers)
|