mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-13 05:17:26 +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
|
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):
|
class StackConfigure(Subcommand):
|
||||||
"""Llama cli for configuring llama toolchain configs"""
|
"""Llama cli for configuring llama toolchain configs"""
|
||||||
|
@ -17,7 +23,7 @@ class StackConfigure(Subcommand):
|
||||||
self.parser = subparsers.add_parser(
|
self.parser = subparsers.add_parser(
|
||||||
"configure",
|
"configure",
|
||||||
prog="llama stack 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,
|
formatter_class=argparse.RawTextHelpFormatter,
|
||||||
)
|
)
|
||||||
self._add_arguments()
|
self._add_arguments()
|
||||||
|
@ -37,10 +43,4 @@ class StackConfigure(Subcommand):
|
||||||
)
|
)
|
||||||
|
|
||||||
def _run_stack_configure_cmd(self, args: argparse.Namespace) -> None:
|
def _run_stack_configure_cmd(self, args: argparse.Namespace) -> None:
|
||||||
self.parser.error(
|
self.parser.error(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.
|
|
||||||
"""
|
|
||||||
)
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue