mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-12 13:00:39 +00:00
chore: move configure deprecated message to help
Signed-off-by: reidliu <reid201711@gmail.com>
This commit is contained in:
parent
34226d6c93
commit
940ee698ad
1 changed files with 8 additions and 8 deletions
|
@ -8,6 +8,12 @@ import argparse
|
|||
|
||||
from llama_stack.cli.subcommand import Subcommand
|
||||
|
||||
DEPRECATED_MESSAGE = """
|
||||
DEPRECATED! llama stack configure has been deprecated.
|
||||
Please use llama stack run <path/to/run.yaml> instead.
|
||||
Please see example run.yaml in /distributions folder.
|
||||
"""
|
||||
|
||||
|
||||
class StackConfigure(Subcommand):
|
||||
"""Llama cli for configuring llama toolchain configs"""
|
||||
|
@ -17,7 +23,7 @@ class StackConfigure(Subcommand):
|
|||
self.parser = subparsers.add_parser(
|
||||
"configure",
|
||||
prog="llama stack configure",
|
||||
description="Configure a llama stack distribution",
|
||||
description=f"Configure a llama stack distribution\n{DEPRECATED_MESSAGE}",
|
||||
formatter_class=argparse.RawTextHelpFormatter,
|
||||
)
|
||||
self._add_arguments()
|
||||
|
@ -37,10 +43,4 @@ class StackConfigure(Subcommand):
|
|||
)
|
||||
|
||||
def _run_stack_configure_cmd(self, args: argparse.Namespace) -> None:
|
||||
self.parser.error(
|
||||
"""
|
||||
DEPRECATED! llama stack configure has been deprecated.
|
||||
Please use llama stack run <path/to/run.yaml> instead.
|
||||
Please see example run.yaml in /distributions folder.
|
||||
"""
|
||||
)
|
||||
self.parser.error(DEPRECATED_MESSAGE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue