mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-04 12:07:34 +00:00
Add api build
subcommand -- WIP
This commit is contained in:
parent
f5620c09ad
commit
3a337c5f1c
7 changed files with 203 additions and 0 deletions
26
llama_toolchain/cli/api/api.py
Normal file
26
llama_toolchain/cli/api/api.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
# 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 ApiBuild
|
||||
|
||||
|
||||
class ApiParser(Subcommand):
|
||||
def __init__(self, subparsers: argparse._SubParsersAction):
|
||||
super().__init__()
|
||||
self.parser = subparsers.add_parser(
|
||||
"api",
|
||||
prog="llama api",
|
||||
description="Operate on llama stack API providers",
|
||||
)
|
||||
|
||||
subparsers = self.parser.add_subparsers(title="api_subcommands")
|
||||
|
||||
# Add sub-commands
|
||||
ApiBuild.create(subparsers)
|
Loading…
Add table
Add a link
Reference in a new issue