From 940ee698ad3fe3abcf9de7aa3012baf83734d202 Mon Sep 17 00:00:00 2001 From: reidliu Date: Fri, 21 Feb 2025 21:01:25 +0800 Subject: [PATCH] chore: move configure deprecated message to help Signed-off-by: reidliu --- llama_stack/cli/stack/configure.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/llama_stack/cli/stack/configure.py b/llama_stack/cli/stack/configure.py index 2bb3f7313..62927fb69 100644 --- a/llama_stack/cli/stack/configure.py +++ b/llama_stack/cli/stack/configure.py @@ -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 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 instead. - Please see example run.yaml in /distributions folder. - """ - ) + self.parser.error(DEPRECATED_MESSAGE)