From 05966e6f0b44b74b2e55d26b16b4ce3f8fd67331 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 26 Mar 2026 17:42:28 -0400 Subject: [PATCH] mgr/mgr_module: add CLICommand, CLIReadCommand, CLIWriteCommand aliases for CLICommandBase The mgr daemon binary and built-in modules import CLICommand, CLIReadCommand, and CLIWriteCommand by name. Adding aliases so existing code continues to work while the new CLICommandBase name is introduced. Signed-off-by: David Galloway --- src/pybind/mgr/mgr_module.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index fa566fcbd60b..b6564b69880a 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -561,6 +561,13 @@ class CLICommandBase(object): }) +# Backward-compatible alias: the mgr daemon binary imports CLICommand by name +CLICommand = CLICommandBase +# Backward-compatible aliases for built-in modules that import these names +CLIReadCommand = CLICommandBase.Read +CLIWriteCommand = CLICommandBase.Write + + def CLICheckNonemptyFileInput(desc: str) -> Callable[[HandlerFuncType], HandlerFuncType]: def CheckFileInput(func: HandlerFuncType) -> HandlerFuncType: @functools.wraps(func) -- 2.47.3